Skip to main content
POST
/
api
/
v1
/
sources
/
{source_slug}
/
setup-tokens
/
cURL
curl --request POST \
  --url https://api.nekt.ai/api/v1/sources/{source_slug}/setup-tokens/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "expires_in_seconds": 2
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "token": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "created_by": 123
}

Authorizations

x-api-key
string
header
required

API Key authentication. Format: 'x-api-key: api_key'

Path Parameters

source_slug
string
required

The slug of the source

Body

expires_in_seconds
integer
write-only
Required range: x >= 1

Response

201 - application/json
id
string<uuid>
required
read-only
token
string
required
read-only
expires_at
string<date-time>
required
read-only
created_at
string<date-time>
required
read-only
created_by
integer
required
read-only

User that created this setup token (Expandable)