curl --request POST \
--url https://production.knotapi.com/mcp/tokens/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "123abc",
"expires_in": 3600
}
'{
"token": "sn_prod_wyLZTDc3_HzXo5lcRkkbZpnmFfg5DU63nHnUsyPQbi0",
"expires_at": "2026-10-21T15:30:00Z"
}Supernova
Create MCP Token
Create a short-lived token to connect your agent to the Supernova MCP for a given user.
POST
/
mcp
/
tokens
/
create
curl --request POST \
--url https://production.knotapi.com/mcp/tokens/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "123abc",
"expires_in": 3600
}
'{
"token": "sn_prod_wyLZTDc3_HzXo5lcRkkbZpnmFfg5DU63nHnUsyPQbi0",
"expires_at": "2026-10-21T15:30:00Z"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
Body
application/json
The user to scope the token to, and optionally its lifetime and phone number.
Your unique identifier for the user.
Maximum string length:
256Example:
"123abc"
Seconds until the token expires. Defaults to 1 day; maximum 30 days.
Required range:
60 <= x <= 2592000Example:
3600
User's phone number in E.164 format. Strongly recommended and required for the Supernova MCP to create sign-in links, necessary for running authenticated actions (i.e. those behind a login).
Example:
"+12025550123"
Was this page helpful?