entity-group > user

Generate JWT Token

Generate a JWT token for an entity group with the given options. This token can be used to authenticate to any entity in the entity group as the user in the Mercoa API and iFrame.

post/entityGroup/{entityGroupId}/user/{foreignId}/token

Request

  • Base URL: https://api.mercoa.com
  • URL: https://api.mercoa.com/entityGroup/{entityGroupId}/user/{foreignId}/token
  • Auth: HTTP bearer

Path parameters

entityGroupIdstring required

Entity Group ID or Entity Group ForeignID

foreignIdstring required

ID used to identify user in your system

Request body

expiresInstring

Expressed in seconds or a string describing a time span. The default is 1h.

sessionIdstring

Optional session ID to use for the token. If not provided, this token will not be associated with a session.

Response

Response with status 200

string required

Changes

No recorded changes to this operation across all 1 revision of this API.