curl --request POST \
--url https://api.notifique.dev/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=authorization_code \
--data code=auth_code_abc \
--data redirect_uri=https://meuapp.com/oauth/callback \
--data code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk{
"access_token": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 900,
"refresh_token": "rt_opaque_new",
"scope": "email:send"
}OAuth
Obter ou renovar tokens
Troca authorization_code por tokens (com code_verifier) ou renova com refresh_token. Refresh tokens rotacionam a cada uso.
POST
/
oauth
/
token
curl --request POST \
--url https://api.notifique.dev/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=authorization_code \
--data code=auth_code_abc \
--data redirect_uri=https://meuapp.com/oauth/callback \
--data code_verifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk{
"access_token": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 900,
"refresh_token": "rt_opaque_new",
"scope": "email:send"
}Corpo
application/x-www-form-urlencoded
Esta página foi útil?

