Autenticação

Endpoint para gerar um Bearer token utilizado como autenticação nos outros endpoints da API.

post/oauth/token

Request

  • Base URL
    https://public-api.kiwify.com/v1
  • URL
    https://public-api.kiwify.com/v1/oauth/token
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring required
client_secretstring required

Example request

{
  "client_id": "be161f42-1d05-4949-8736-1a526c28672d",
  "client_secret": "a12b34c56d78e90f1234abcd5678efgh9012ijkl3456mnop7890qrst1234uvwx"
}

Response

OK

access_tokenstring
token_typestring
expires_instring
scopestring

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdG9yZV9hcGlfaW50ZWdyYXRpb25faWQiOiIyZThmMzExMy0wNmE1LTQ4OTAtOTgyNC1iNWM1ZmI3YmZkYTciLCJzdG9yZV9pZCI6IlU5VmNINnlaelJrVDJmQiIsImludGVncmF0aW9uX25hbWUiOiJ0ZXN0ZSIsInNjb3BlIjoic3RhdHMiLCJqdGkiOiJhZTMwZDQ4NjU3NWJmMDBiMDFiNzFkNDFlY2M3OWM5YyIsImV4cCI6MTcwMjU5MDg0NiwiaWF0IjoxNzAyNTA0NDQ2fQ.N8Nl5Coj3bL9M6tkaAE61bL2NnqwhUYfNnRqhTMGElc",
  "token_type": "Bearer",
  "expires_in": "86400",
  "scope": "stats products events sales sales_refund financial affiliates webhooks"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.