Obtém o token OAuth2 usado nas chamadas da plataforma FlowFinance.
POST https://auth.platform.flowfinance.com.br/oauth2/token
Headers
| Header | Valor |
|---|---|
| Authorization | Basic {{client_credentials}} |
| Content-Type | application/x-www-form-urlencoded |
Body (form-urlencoded)
| Campo | Valor |
|---|---|
| grant_type | client_credentials |
Exemplo (cURL)
curl -X POST "https://auth.platform.flowfinance.com.br/oauth2/token" \
-H "Authorization: Basic {{client_credentials}}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials"Resposta 200
{
"access_token": "eyJhbGciOi...",
"token_type": "Bearer"
}Efeitos: Grava access_token e token_type no ambiente. 🔎 Provável expires_in/scope adicionais não capturados.