Accounts
Create a new personal access token
post/api/accounts/v1/tokens
Request
- Base URLhttps://api.surrealdb.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"label": "My laptop MCP",
"scopes": [
"read:account"
],
"durationDays": 30
}Response
Personal access token created
Changes
No recorded changes to this operation across all 1 revision of this API.