githubEdit

Access Token

In order to authorize your API calls, you will need an access token. For security, the only way to programmatically obtain an access token is by exchanging it for an API key. Learn how to:


Exchange API key for access token

post

Exchange an API key for an oAuth2 access token

Body
apiKeystringRequired

The actual API key that you have received from the API key request.

Example: eyJjcnYiOiJQLTM4NCIsImQiOiJyM1VFQ21naUNiNjI1c19CZWc3emdULUlCajJUOUZW...
Responses
chevron-right
200

A successful response.

tokenstringOptionalExample: eyJjcnYiOiJQLTM4NCIsImQiOiJyM1VFQ21naUNiNjI1c19CZWc3emdULUlCajJUOUZW...
expiresInstring · int64OptionalExample: 3600
scopestringOptional
post
/access_token


User signout

post

Log out current user and invalidates token

Authorizations
AuthorizationstringRequired

Your ByteNite access token

Body
objectOptional
Responses
chevron-right
200

A successful response.

okbooleanOptional

True if the request was successful.

requestIdstringOptional

Internal request identifier for tracing or support.

Example: xyz-123
messagestringOptional

Additional message providing status or context.

Example: Request failed
post
/signout


Check if the user is already logged in

get

Check if the user is already logged in, if the user can skip login a redirect url is returned

Authorizations
AuthorizationstringRequired

Your ByteNite access token

Query parameters
loginChallengestringOptional
Responses
chevron-right
200

A successful response.

skipbooleanOptional
redirectTostringOptional
get
/skip

Last updated

Was this helpful?