Exchange Authorization Code for Access Token
After successfully receiving the authorization code, the next step in the OAuth 2.0 flow is to exchange that code for an access token. This token acts as a credential that authorizes your application to securely access Evia Sign API endpoints on behalf of the authenticated system.
The exchange must be performed by your backend server, using your Client ID and Client Secret, along with the received code. The resulting access token must then be included in the Authorization
header of all subsequent API requests.
Endpoint
POST
/_apis/falcon/auth/api/v2/token
This endpoint is used to exchange a valid authorization code for an access token. The access token is required to authenticate and authorize all subsequent API requests to the Evia Sign platform.
This request must be made server-side to ensure secure handling of the Client Secret.
Request Headers
Include the following headers to authenticate your request and ensure it’s correctly processed by the server.
Authorization
The Authorization
header must use Basic Authentication. Format the value as: Basic base64(client_id:client_secret)
Content-Type
Must be set to application/x-www-form-urlencoded
to ensure that the request body is interpreted correctly by the server.
Request Body Parameters (Form-Encoded)
The request body should be sent in x-www-form-urlencoded
format. Below are the required parameters:
grant_type
✅ Yes
Must be set to authorization_code
client_id
✅ Yes
Your application's Client ID (same used in the authorization request)
client_secret
✅ Yes
Your Client Secret
code
✅ Yes
The authorization code received from the previous step
Sample Request (Raw Format)
Body
Successful Response
If the request is valid, Evia Sign will return a response with an access token:
access_token
The token to include in the Authorization
header for all API requests
token_type
The type of token issued; always bearer
expires_in
Time in seconds until the token expires (e.g., 3600 = 1 hour)
Error Response Example
Common causes include:
Missing or incorrect
client_id
orclient_secret
Expired or reused authorization code
Incorrect or mismatched
redirect_url
Using the Access Token in API Requests
Once the access token is received, include it in the Authorization
header of all subsequent API requests:
This token allows Evia Sign to verify the identity of your registered application and authorize its access to the API, based on the scopes granted during app registration.
Last updated
Was this helpful?