Users
Create user token
CreateUserToken
Returns a Motto-signed JWT for the user. This token can be used to authenticate the user in the Motto content-delivery API.
Note: this endpoint can be used even without a configured identity platform, nor does CreateUser need to be called. Passing a user_id that is not known to Motto will work just as well. This is useful in situations where an external identity platform is used, and you only wish to use the user_id in combination with e.g. Motto’s entitlement service.
POST
/
iam
/
users
/
v1
/
{user_id}
/
token
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
user_id
string
requiredQuery Parameters
project_id
string
role
enum<string>
Available options:
ROLE_UNSPECIFIED
, ROLE_DEFAULT
, ROLE_TESTER
, ROLE_VIP
Response
200 - application/json
token
string