Skip to main content
POST
Get a token for a procedure step to use a connection

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Body

application/json
provider
enum<string>
required

Whose API the connection is for.

Available options:
microsoft
Example:

"microsoft"

expiresInSeconds
integer
required

How long the step needs the token. A stored token that ends sooner is refreshed first; the provider decides how long the new one lasts.

Required range: 60 <= x <= 4500
Example:

1200

alias
string

The name of one of your organization’s own connections of this provider, in lower case. Omit for the default connection.

Pattern: ^[a-z][a-z0-9]{0,31}$
Example:

"finance"

Response

The token, the variable a script reads it from, and its hosts.

variable
string
required

The environment variable a script reads the token from.

Example:

"MICROSOFT_GRAPH_ACCESS_TOKEN"

token
string
required

The provider’s access token. Do not log it.

hosts
string[]
required

The hosts a script reaches with the token. *. covers every subdomain.

Example: