Creates a long-lived token of the form ms_<prefix>_<secret>. The response is the only time that the plaintext token appears, so store it immediately. The call requires the permission api_tokens.manage in an organization scope.
Body
List the role ids with GET /api/v1/roles. The built-in organization roles are owner, admin, editor, viewer, and intake.
Send the token like a login token: Authorization: Bearer ms_…. A token with the default role can send data and cannot query it.
Errors
Last modified on October 26, 2026