entity > user

Generate JWT Token

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

post/entity/{entityId}/user/{userId}/token

Request

  • Base URL: https://api.mercoa.com
  • URL: https://api.mercoa.com/entity/{entityId}/user/{userId}/token
  • Auth: HTTP bearer

Path parameters

entityIdstring required

Entity ID or Entity ForeignID

userIdstring required

User ID or User ForeignID

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.