Access Token
This endpoint allows you to create access token from your client id and client secret.
client id and client secret can be obtained from your partners dashboard.
The access token is valid for 1 hour, and should be sent with any request inside the Partners API as Header: "Authorization: Bearer XXXXXX"
Settings:
URL | |
Method | JSON via POST |
Body:
Parameter | Description / Example | Mandatory |
|---|---|---|
client_id | Your client id | yes |
client_secret | Your client secret | yes |
Response:
{
"access_token": "12345",
"expiration_time": "1731842931",
"token_type": "Bearer",
"reason": 1
}
Response-Explain:
Parameter | Description | ||||||
|---|---|---|---|---|---|---|---|
status | OK or FAIL "OK" means the request has been sent to Meta. "Fail" means error. | ||||||
access_token | This is the access token you should use with any other call to the partners API. you should use this access token in the Header of the call, as Authorization: Bearer XXXX (where XXX is the access token) | ||||||
expiration_time | The access token is valid for 1 hour. here is the time when it will be expired. | ||||||
token_type | Bearer | ||||||
reason | 'reason' is the status explanation in case of FAIL
|