---
title: Autenticação
slug: Xhmp-autenticacao
docTags: 
createdAt: 2024-05-06T19:33:53.230Z
---

:::ApiMethodV2
```json
{
  "name": "Autenticação",
  "method": "POST",
  "url": "https://gyra-core.gyramais.com.br/auth/authenticate",
  "description": "Autenticar a organização",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "TqtqldAs82Ak3xdlXEhvP",
        "language": "curl",
        "code": "curl --location --request POST 'https://gyra-core.gyramais.com.br/auth/authenticate' \\\n--header 'gyra-client-secret: string' \\\n--header 'gyra-client-id: string'",
        "customLabel": ""
      },
      {
        "id": "km41TUEoV0jlv_RdLYDko",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://gyra-core.gyramais.com.br/auth/authenticate',\n   'headers': {\n      'gyra-client-secret': 'string',\n      'gyra-client-id': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "CWrKDLTPinnbR0OWh9Ywq",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"gyra-client-secret\", \"string\");\nmyHeaders.append(\"gyra-client-id\", \"string\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://gyra-core.gyramais.com.br/auth/authenticate\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "Hdt0dFLRDbxSAHpJRxEqK",
        "language": "python",
        "code": "import requests\n\nurl = \"https://gyra-core.gyramais.com.br/auth/authenticate\"\n\npayload = {}\nheaders = {\n   'gyra-client-secret': 'string',\n   'gyra-client-id': 'string'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "zlKEFOjbMBZZm-J9kJ95i",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://gyra-core.gyramais.com.br/auth/authenticate\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"gyra-client-secret\"] = \"string\"\nrequest[\"gyra-client-id\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "TqtqldAs82Ak3xdlXEhvP"
  },
  "results": {
    "languages": [
      {
        "id": "8_ZwOdz8X4eieSpGIH3ky",
        "language": "200",
        "customLabel": "",
        "code": "[\n  {\n    \"id\": \"663a07b482cc4b57913966ef\",\n    \"createdAt\": \"2024-05-07T10:51:32.701Z\",\n    \"updatedAt\": \"2024-05-07T10:51:32.752Z\",\n    \"expiresAt\": \"2024-05-08T10:51:32.700Z\",\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjAyZDFlNmIzYmJiNTExOGQ1ZjI3ZmMiLCJzZXNzaW9uSWQiOiI2NjNhMDdiNDgyY2M0YjU3OTEzOTY2ZWYiLCJpYXQiOjE3MTUwNzkwOTIsImV4cCI6MTcxNTE2NTQ5Mn0.uQ79xIdLuQhCIGU9ifUbGZt28kDpSV-wuvrlkhIdXKU\",\n    \"userId\": \"6602d1e6b3bbb5118d5f27fc\",\n    \"loggedOutAt\": null,\n    \"organizationId\": \"6602cba04faa2a9211fb6fa6\"\n  }\n]"
      }
    ],
    "selectedLanguageId": "8_ZwOdz8X4eieSpGIH3ky"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "gyra-client-secret",
        "kind": "required",
        "type": "string",
        "description": "Senha",
        "children": []
      },
      {
        "name": "gyra-client-id",
        "kind": "required",
        "type": "string",
        "description": "Código identificador",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "response": [],
  "hasTryItOut": true
}
```
:::

# 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.
