Skip to main content
POST
Create a token (interactive sign-in only)

Authorizations

sessionid
string
cookie
required

Interactive browser session, the sessionid cookie Django sets when you sign in to the web app (benchgen.com). To script this endpoint, sign in in a browser and copy the sessionid cookie from DevTools > Application > Cookies. The recommended path is simply the web app itself: Profile Settings > Platform API tokens. Platform tokens are deliberately refused here (403), so a leaked token can never mint successors.

Body

application/json
scopes
enum<string>[]
required

Scopes the token will carry, fixed at creation. admin is accepted only for staff accounts; internal:* scopes can never be minted through the API.

Available options:
models:read,
models:write,
benchmark:read,
benchmark:run,
benchmark:create,
benchmark:manage,
benchmark:publish,
knowledge:read,
knowledge:write,
billing:read,
agents:chat,
agents:manage,
admin
Example:
name
string
Example:

"CI pipeline"

expires_in_days
integer

Omit or 0 for no expiry, max 3650

Response

Created; token holds the secret, shown once

Last modified on September 10, 2026