younifyd
Menu

Create An Access Token

Create an Access Token

POST/oauth/access_token

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Create An Access Token action (under Authentication).
  3. Fill in the fields below, then reference the result from later steps as {{createAnAccessToken.response.data}}.

Fields

baseUrlstring

The API host this action calls. Choose one, or pick Custom to enter your own.

One ofhttps://useast.api.elasticpath.comhttps://euwest.api.elasticpath.com__custom__Default "https://useast.api.elasticpath.com"

baseUrlCustomstring
bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{createAnAccessToken.response.data.<field>}}.

access_tokenstring

The access token you use to authenticate requests to the API.

token_typestring

Right now this is only `Bearer`.

identifierstring

The type of token requested. This can be a `client_credentials` or `implicit`.

expires_ininteger

The duration in seconds after which the token expires.

expiresinteger

The epoch time that this token expires at.

json
{
  "access_token": "string",
  "token_type": "string",
  "identifier": "string",
  "expires_in": 0,
  "expires": 0
}

Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.

Create An Access Token — Elastic Path — Documentation