Skip to main content
POST
/
api
/
access_tokens
Error
A valid request URL is required to generate request examples
{
  "token": {
    "id": 123,
    "name": "<string>",
    "user_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "last_used_at": "2023-11-07T05:31:56Z",
    "expires_at": "2023-11-07T05:31:56Z",
    "scopes": [],
    "allowed_ips": [
      "<string>"
    ],
    "expired": true,
    "token_prefix": "<string>"
  },
  "raw_token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.spitshake.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Auth-Token
string
header
required

API token generated at Settings > API

Body

application/json
name
string

Descriptive name for the token

expires_at
string<date-time>

Expiration date (null for no expiry)

scopes
enum<string>[]

Permission scopes (empty = full access)

Available options:
templates:read,
templates:write,
submissions:read,
submissions:write,
users:read
allowed_ips
string[]

IP allowlist (empty = all IPs)

Response

Token created

token
object
raw_token
string

The API token value. Only shown once at creation.