POST /user/subscription_tokens/{provider}

Save your subscription token for a provider.

MethodPath
POST/v1/user/subscription_tokens/{provider}

Replaces whatever was stored. The token is saved DISABLED and routes nothing until `POST /v1/user/subscription_tokens/{provider}/verify` succeeds. Only `claude` routes today; generate its token with `claude setup-token`.

Path parameters

providerenumrequired

Named for the harness the token drives, not the vendor behind it: a developer connects "my Claude subscription", and the path segment they type is `claude`.

one ofclaudecodex
curl -X POST "https://api.ellipsis.dev/v1/user/subscription_tokens/{provider}" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token":"..."}'

Request

Example request body
{
"token": "string"
}

Body parameters

tokenstringrequired

The subscription OAuth token. For `claude`, the `sk-ant-oat…` token `claude setup-token` prints.

Response

Example response · 200
{
"configured": false,
"enabled": false,
"provider": "claude",
"token_last4": "string"
}

On this page

No Headings
Schedule a demo