API Tokens
Create API Token
Returns a new API token belonging to a user.
POST
/
v1
/
auth
/
api-tokens
/
{tokenName}
The token
in the response is never revealed again. Store this somewhere safe, and never share or commit it to source control.
Path Parameters
tokenName
string
requiredThe name of the api token.
Response
200 - application/json
name
string
The name given to the API Token.
id
string
The ID generated by Turso for the API Token.
token
string
The actual token contents as a JWT. This is used with the Bearer
header, see Authentication for more details. This token is never revealed again.