UiPath Documentation
automation-hub
2022.4
false
Guia da API do Automation Hub
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

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://{yourDomain}/automationhub_/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.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades