---
title: "Create a signed assertion token for member authorization. Roles: admin or self."
method: POST
path: "/api/auth/tokens/members/{memberId}"
tags: ["Authentication"]
---

# Create a signed assertion token for member authorization. Roles: admin or self.

`POST /api/auth/tokens/members/{memberId}`

Generate and sign a new assertion token for the given Mobile Coach member ID.
The token will be valid for only 5 minutes and can be used to authenticate the member via single-sign-on.

Notes:
- The token is a URL-safe JWT cryptographically signed by Mobile Coach.
- The member ID is a Mobile Coach member ID (not a member ID from your system).
    - Mobile Coach member IDs are returned in the export API and webhook events.
- Create a member assertion token as part of a single-sign-on flow into Mobile Coach.

## Path parameters

- `memberId` integer, required

## Response `200`

OK

- AssertionTokenResponse
  - `success` boolean
  - `error` string
  - `token` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

## Changes

- **2026-09-02** `870f28ba2607` — 5 info
  - added the optional property `error/errorId` to the response with the `400` status
  - added the optional property `error/errorId` to the response with the `401` status
  - added the optional property `error/errorId` to the response with the `403` status
  - added the optional property `error/errorId` to the response with the `404` status
  - …1 more

[Change history](https://skmtc.dev/mobilecoach/apis/untitled-api/changes/api/auth/tokens/members/:memberId/post.md)

---

[API](https://skmtc.dev/mobilecoach/apis/untitled-api.md) · [All operations](https://skmtc.dev/mobilecoach/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mobilecoach/untitled-api/revisions/870f28ba2607/schema)
