Skip to main content
POST
Create access token

Endpoint

This endpoint is unauthenticated. Send SDK credentials with HTTP Basic authentication from a trusted server.

Request

Response

Use access_token as the Bearer token for Core API resource calls. expires_in is a lifetime in seconds; compute expires_at = now + expires_in in your token cache and refresh before that time.

Errors

Authorizations

Authorization
string
header
required

HTTP Basic authentication using client_id:client_secret for token exchange.

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
client_credentials
scope
string

Space-delimited OAuth scopes. Omit to use the scopes configured for the client.

Example:

"neuronsearchlab-api/read neuronsearchlab-api/write"

Response

Access token

access_token
string
required

Bearer token to send in the Authorization header.

expires_in
integer
required

Token lifetime in seconds.

Example:

3600

token_type
enum<string>
required
Available options:
Bearer
scope
string
Example:

"neuronsearchlab-api/read neuronsearchlab-api/write"