Autenticação
1 min
Autenticação
Autenticar a organização
POST
https://gyra-core.gyramais.com.br/auth/authenticate
Header Parameters
- gyra-client-secretstringrequiredDescription
- gyra-client-idstringrequiredDescription
curl
curl --location --request POST 'https://gyra-core.gyramais.com.br/auth/authenticate' \
--header 'gyra-client-secret: string' \
--header 'gyra-client-id: string'nodejs
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://gyra-core.gyramais.com.br/auth/authenticate',
'headers': {
'gyra-client-secret': 'string',
'gyra-client-id': 'string'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
javascript
var myHeaders = new Headers();
myHeaders.append("gyra-client-secret", "string");
myHeaders.append("gyra-client-id", "string");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://gyra-core.gyramais.com.br/auth/authenticate", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
url = "https://gyra-core.gyramais.com.br/auth/authenticate"
payload = {}
headers = {
'gyra-client-secret': 'string',
'gyra-client-id': 'string'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "net/http"
url = URI("https://gyra-core.gyramais.com.br/auth/authenticate")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["gyra-client-secret"] = "string"
request["gyra-client-id"] = "string"
response = https.request(request)
puts response.read_body
200
[
{
"id": "663a07b482cc4b57913966ef",
"createdAt": "2024-05-07T10:51:32.701Z",
"updatedAt": "2024-05-07T10:51:32.752Z",
"expiresAt": "2024-05-08T10:51:32.700Z",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjAyZDFlNmIzYmJiNTExOGQ1ZjI3ZmMiLCJzZXNzaW9uSWQiOiI2NjNhMDdiNDgyY2M0YjU3OTEzOTY2ZWYiLCJpYXQiOjE3MTUwNzkwOTIsImV4cCI6MTcxNTE2NTQ5Mn0.uQ79xIdLuQhCIGU9ifUbGZt28kDpSV-wuvrlkhIdXKU",
"userId": "6602d1e6b3bbb5118d5f27fc",
"loggedOutAt": null,
"organizationId": "6602cba04faa2a9211fb6fa6"
}
]Credenciais
As credenciais da organização são disponibilizados através do cadastro com nossa equipe de onboarding no momento do cadastro, caso deseje solicitar as credenciais entre em contato com nosso time.