Skip to main content
POST
/
v0
/
tokens
Create token
curl --request POST \
  --url https://api.sfcompute.com/v0/tokens \
  --header 'Content-Type: application/json' \
  --data '
{
  "expires_in_seconds": 604800,
  "origin_client": "cli",
  "description": "<string>",
  "name": "<string>"
}
'
{
  "object": "token",
  "id": "<string>",
  "token": "<jwt>",
  "name": "<string>",
  "description": "<string>",
  "is_sandbox": true,
  "last_active_at": "<string>",
  "expires_at": "<string>",
  "created_at": "<string>",
  "origin_client": "<string>",
  "is_system": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.sfcompute.com/llms.txt

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

Body

application/json
expires_in_seconds
number
required

Number of seconds until token expires.

Example:

604800

origin_client
enum<string>
required

Origin client.

Available options:
cli
description
string

Description of the token.

Maximum string length: 1000
name
string

Name of the token.

Maximum string length: 100

Response

Token created successfully

object
string
Example:

"token"

id
string
token
string
Example:

"<jwt>"

name
string | null
description
string | null
is_sandbox
boolean
last_active_at
string | null
expires_at
string
created_at
string
origin_client
string
is_system
boolean