v1

latestOpenAPI 3.0.02026-07-24161215397.4 KB
Auth

Impersonate a member

Authenticate member by given email. Returns the access token to login (impersonate) as a member. The authentication token returned by this endpoint can be used to generate quick login links to the members portal. You just need to add access_token=<token> to the URL.

Required scopes: flex.user.auth.impersonate

post/api/v2/organizations/{orgSlug}/auth/impersonate

Path parameters

orgSlugstring required

organization slug

Request body

emailstring required

The email of the member with which the member is registered.

Example request

{
  "email": "example@gmail.com"
}

Response

tokenstring

The generated token which you can use as authentication for various requests.

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4NDZmMjhhZmY1ZDg4MTI2YWJjZmMzZiIsImlhdCI6MTQ4MTExNjQwOCwiZXhwIjoxNDgxMjg5MjA4fQ.ElceBwjTRBhu669SWkn_Za8VKk-cwomzmbEsNywPt5A"
}