Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

All calls to the API require authentication via HTTP Basic Auth, using the M2M (Machine to Machine) username and password available at https://app.ahgora.com.br/plataforma/contas/usuarios of the service type.


How Basic authentication works

The Basic authentication mechanism uses an HTTP header with Base64-encoded credentials in the following format:

Informações

Authorization: Basic <Base64(username:password)>


Authentication requirements:

  • User and password m2m;
  • The Authorization header must be present in all requests.
  • The credentials must be valid and correspond to a user with permission to access the desired resources.
  • If the credentials are invalid or missing, the API will return error 401 Unauthorized:

    Bloco de código
    languagetext
    themeEmacs
    linenumberstrue
    collapsetrue
    {
        "error": {
            "code": 401,
            "message": "Unauthorized"
        }
    }