Autenticação

Token de acesso

Para todas as requisições de relatórios, resultados e extratos de uso, será exigido o token de acesso. O token é gerado no endpoint utilziando as suas credencias de acesso, que são fornecidas pelo seu gerente comercial.

As credenciais de acesso é composta pelos campos client_id e client_secret.

As credenciais fornecem o token de acesso (access_token) , que é válido por 60 minutos, após esse período, o token é expirado e é necessário a requisição de um novo token.

Gerar Token de acesso

POST https://core.fastflow360.com.br/oauth/token

Parâmetros para a requisição do token:

Campo
Valor

grant_type

Valor fixo em client_credentials

client_id

Seu ID de cliente (enviar em formato string)

client_secret

Seu Client Secret (enviar em formato string)

Exemplo de requisição de token:

curl
--location
--request POST 'https://core.fastflow360.com.br/oauth/token' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw
'{
  "grant_type": "client_credentials",
  "client_id": "SEU_ID_AQUI",
  "client_secret": "SEU_TOKEN_AQUI"
}'

Parâmetros de retorno:

Campo
Valor

token_type

Fixo em Bearer

expires_in

Tempo de expiração do token em segundos

access_token

Token de acesso utilizado nas requisições

Exemplo de retorno:

{
    "token_type": "Bearer",
    "expires_in": 3600,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxMDAwMDAxIiwianRpIjoiM2M4YzU0YmM5ZWQ4NDU3NmM1NDBkOWY4MzBiMzgxOGI3MTUwYzlhYzdmMGIxOWVmYjI0OGM4ZmZlYzIzNWI1MTcyOTQ2MTY0ZjMyZDhiNTUiLCJpYXQiOjE2OTg0Mzc3NDUuNjI2NzEsIm5iZiI6MTY5ODQzNzc0NS42MjY3MTYsImV4cCI6MTY5ODQzOTU0NS41OTg0OCwic3ViIjoiIiwic2NvcGVzIjpbXX0.QANc10VO27ZzQsbJAOsttWtHXwlQ0I75Q30veL8dB2-3--9peg2kMrXSpz831dau3RlDmtdmLuV-u93DZENsVnEAc3EY_J4Y92bWMgZy8P7OnRpwuiSLULfzLr1KI2Y96U9s7gNrpPCiT61S92l_zyXk26zocJhMDtGgPlL2uG6jxJxkYx8vak2UHgHTjhUsmiHQoTwFZX4A5atJMco9UF3t-TmP1e4u6v1EomO9vjClfBhBN6auG-DqTJ_Ul0NIZz70ocjwFg8CfIayocPKNStU7TnjIAAVoGklPnfqoSlqjF54AOa_7Wv3S87WTRGRBDaTiE6Y6Mqq1vxIaDWU1_ZznZBdD7RdboluXD-5UDqx0sxRFi6pZItXE3FKf1S9-w_FUVh14OImjqSg8NEMh95gxU9IwCKXCicpSLU_HDpJosG8I-dZRKiEdZFR9gqz8bf6QuNe2WLGak_FByjjjAUWyukYD50eWSVP4u09vFgipENnGQcRdZnqMFDm7nuqjM_LOs9jcSBaCHsahwyuO5z1OyQAGu8aAIu0gmzEU5clMSIJRO2t3llFwSU94uyHVN_9XlbzGux-_cKCxhshDC4Icpzxy8Mi_7YYRTBQBQryC6TzwdAYEixzJUbgO0sqsfSCMHMKqPVXPz9ge0M9R80HwFfXeJ1j9QjCDys2RWI"
}

Last updated