Authorization

Modified on Wed, 1 Oct at 8:39 PM

You need your `refresh_token` for authorization. You can obtain your token from the UI by following these steps: - Go to Settings → API Integrations. - Click the Connect button to activate your Refresh Token. The `refresh_token` can only be used to get a new `access_token`. Use the `access_token` to call other API endpoints with the following header:

Refresh Token

Endpoint URL
POST https://api.tryoto.com/rest/v2/refreshToken
Example Request Body

Here is an example of a request body:

{
  "refresh_token": "AMf-vBwIRQZypzlW7dH-4a-gXlW1zw3VLXwoTvnePZPT5V6AnSESwhk9h4DKRMbDGGaSbDrbF-Tui21wq5PCI33HS7RaAapIFmwziKjIAAfAI2TUY3Vz5fKSlUwKUUKjfB5GTsBnFGjR1zdq9dryhPK88utLrE1-DSbRjfgdy4NNG6RTxk2ST0BplDKOdFN-y4ilOlI4rY7F"
}
Request Parameters
NameRequiredTypeDescription
refresh_tokenyesstring`refresh_token` can obtain token from the UI, this is permanent token, use only to get `access_token`

This API endpoint is used to obtain a new `access_token` by providing a valid `refresh_token`. The `access_token` is a temporary token with a lifespan of one hour, used to authenticate and authorize all subsequent API requests.

Include the `access_token` in the request headers as:

`Authorization: Bearer access_token`

To adhere to security standards, it is recommended to renew the `access_token` periodically (every hour) to maintain uninterrupted access to the API while minimizing security risks. This endpoint ensures seamless and secure token management for applications relying on API interactions.

Request Parameters: |


Health Check

Endpoint URL
GET https://api.tryoto.com/rest/v2/healthCheck

Available Packages: All Packages

This API endpoint is used to check if the system is working properly


Test Token Copy 2

Endpoint URL
GET https://staging-api.tryoto.com/rest/v2/test

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article