Menu
Post V2 Account Members Tokens
Generate an Account Management Authentication Token
POST
/v2/account-members/tokensUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Post V2 Account Members Tokens action (under Accounts).
- Fill in the fields below, then reference the result from later steps as
{{postV2AccountMembersTokens.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"data": {}
}
Response
Returns 201 with an object. Read it in later steps with {{postV2AccountMembersTokens.response.data.<field>}}.
{
"data": [
{
"type": "string",
"account_name": "acc-name-1",
"account_id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIyMDIxLTAzLTE2VDE5OjM2OjExLjA3MFoiLCJpYXQiOiIyMDIxLTAzLTE1VDE5OjM2OjExLjA3MFoiLCJzY29wZSI6IjFjNDVlNGVjLTI2ZTAtNDA0My04NmU0LWMxNWI5Y2Y5ODVhMyIsInN1YiI6IjFjNDVlNGVjLTI2ZTAtNDA0My04NmU0LWMxNWI5Y2Y5ODVhMiJ9.ytQ3UutTl_RJ8NiB1xN29Ta23p-FXsYOhcUM7MUQ4CM",
"expires": "2021-03-16T19:36:11.070Z"
}
],
"meta": null,
"links": {
"current": "https://useast.api.elasticpath.com/v2/account-members/tokens?page[offset]=0&page[limit]=25",
"first": "https://useast.api.elasticpath.com/v2/account-members/tokens?page[offset]=0&page[limit]=25",
"last": "https://useast.api.elasticpath.com/v2/account-members/tokens?page[offset]=0&page[limit]=25",
"next": null,
"prev": null
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?