API tokens
Create an API token for the active account
The response is the only time the plaintext token is returned. Requires a browser session — API tokens cannot manage tokens.
post/account/api-tokens
Request
- Base URL: https://api.nippy.host
- URL: https://api.nippy.host/account/api-tokens
- Auth: bearer (a scheme the document does not define)
Request body
Example request
{
"name": "Claude on my MacBook",
"scopes": [
"sites:read",
"sites:deploy"
],
"expiresAt": "2027-01-01T00:00:00.000Z",
"ref": "cli"
}Response
Example response
{
"displayPrefix": "ab12cd34",
"token": "nippy_ab12cd34…"
}Changes
No recorded changes to this operation across all 1 revision of this API.