Skip to navigation

Get OAuth Token

Beta
This endpoint allows you to generate a temporary OAuth token required to authenticate requests to the Powered by APIs. Franchises support a single OAuth token. Generating a new OAuth token will invalidate the previous OAuth token.

Authentication

X-Auth-Clientstring
The client ID of the franchise API account.

Headers

AcceptstringRequiredDefaults to application/json

The MIME type of the response body.

Request

This endpoint expects an object.
durationdoubleRequired

Response

Success
access_tokenstringOptional>=1 character
expires_atstringOptional>=1 character

Errors

401
Unauthorized Error
403
Forbidden Error
502
Bad Gateway Error
503
Service Unavailable Error
504
Gateway Timeout Error