- Introdução
- Ambiente
- Autenticação
- Pré-Autorização
- Webhooks
Token de Acesso
POST
/oauth/token
M2M
Request
Body Params application/json
client_id
string
required
client_secret
string
required
grant_type
string
required
Example
{
"client_id": "AHUf0tmjTNybprojVAzqbDyVHP",
"client_secret": "ly5qaDwfwXaVZ2_e__mztMrbHKh6zwhZSwRLg4KCxENf8vQdBsJnV",
"grant_type": "client_credentials"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://one.app-hm.oneos.com.br/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "AHUf0tmjTNybprojVAzqbDyVHP",
"client_secret": "ly5qaDwfwXaVZ2_e__mztMrbHKh6zwhZSwRLg4KCxENf8vQdBsJnV",
"grant_type": "client_credentials"
}'
Responses
🟢200OK
application/json
Body
access_token
string
required
expires_in
integer
required
token_type
string
required
Example
{
"access_token": "eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.hfXkRhP0acvo-qRZkEPjdHPr9mycdX1RWbDURWk0qCMIaCcgtL67JF9JoHW-mIm5wSqgEixJaZr3YDzCwVSA5NK1ax2UVonCnN1qJdsQgk5eeRmCqFUEExCGAiAiohMMTzMtHw5woBmXhP-PzJ-0eXd8x4WSYJxek-lssehP7HpoFQmjliqnqAr4gJdF8wkdi5BG55rOze7p3QqSrHUeeD7HlTXIizg03vjxdseTe_Tk1ZS7F3hUk7Eu46RAEWJeuSulix8expQurwcENSvYP7Bo2ZJDaZdmeqkaSvyI5LV5r08d0ZTwJrM8wJvaa208OEHe1lJeiVS2j22CgHPuDg.uVJD4BQcdYGVAADG.OJdcA-1O-DwneTeOwnZBvHn7kDswlEPyDzDsWbNwPqguAOQAiTPmd-wz7QBaHTniwmDmKBK2RzS-kaYZJWOJjdvCTZ9Ud99OKQ87V1JTa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