Générer un jeton d’accès 2022-07-26

Overview

The Generate Access Token call will return a JSON object containing a temporary “token_id” which can be used for all the platform-level API calls. Please note this API cannot be called more than 5 times per minute.

API URL

https://api.ubibot.com/accounts/generate_access_token?parameters

HTTP Method

GET/POST

URL Parameters

NameTypeRequiredDescription
account_keyStringRequiredUnique key for each account. Used for all account-level authentication requests. It can be found on the web console panel-> Account->Security page.
expire_in_secondsIntegerOptionalSpecify the temporary access token expiration time in seconds. The default value is 3600 seconds (one  hour). Minimum value is 60 seconds.

Response

An HTTP code of 200 is responded for each successful data requests. The message body contains a JSON object containing a temporary “token_id”.

Error: See the separate list of error codes for more details.

Examples

GET https://api.ubibot.com/accounts/generate_access_token?account_key=xxxxx-xxxxx-xxxxx-xxxx

The response: