Automation Hub
Mais recente
falso
Imagem de fundo do banner
Guia da API do Automation Hub
Última atualização 29 de jan de 2024

Fazendo chamadas de API do Automation Hub

  • Define the token as a bearer -H 'Authorization: Bearer [Tenant ID]/ [Token_generted_from_the_Open API_page].

  • If an App Key was defined when generating the token, it's mandatory that you apply it using the following key: x-ah-openapi-app-key: [defined app key]

  • Adding x-ah-openapi-auth: openapi-token key in the header is mandatory as it indicates the token type.

The easiest way to build the Automation URL is by using the process_slug.

For example, if the process_slug is: process_slug": "onboarding-of-new-employee"

Then the URL for that automation is: https://automation-hub.uipath.com/{tenantName}/process_slug/onboarding-of-new-employee

The request should look as in the following example:

Content-Type: application/json 
Authorization: Bearer [Tenant ID/Token] 
x-ah-openapi-app-key: [API key if added] 
x-ah-openapi-auth: openapi-tokenContent-Type: application/json 
Authorization: Bearer [Tenant ID/Token] 
x-ah-openapi-app-key: [API key if added] 
x-ah-openapi-auth: openapi-token
  • Use a opção Copiar para a área de Transferência, disponível após a coluna Token, para copiar-colar seu valor de [ID do tenant\Token] da página Abrir API de seu Automation Hub, conforme descrito na página Gerar seu token.
    docs image
  • If an App Key is included for your token, a Copy to Clipboard option becomes available after the App Key column. Use it to copy-paste your [App Key] value.
    docs image
Observação:

O [Token] necessário para fazer chamadas de API do Automation Hub tem validade limitada. Caso ele expire, edite a data de expiração acessando a opção Ações > Editar na coluna Ação correspondente ao token OU gere um novo token conforme mencionado na página Gerar seu token. Caso contrário, você receberá um código de status 401.

Was this page helpful?

Obtenha a ajuda que você precisa
Aprendendo RPA - Cursos de automação
Fórum da comunidade da Uipath
Logotipo branco da Uipath
Confiança e segurança
© 2005-2024 UiPath. All rights reserved.