---
title: "Sign in with custom token"
method: POST
path: "/token/signin/"
tags: ["Accounts", "public"]
---

# Sign in with custom token

`POST /token/signin/`

The endpoint signs in or signs up a user by exchanging a custom Auth token for an ID token and a refresh token.

Requires "*" permission on the organization and its children, and the "allowUserTokenManagement" flag to be enabled on the organization.

## Headers

- `x-m2-organization-id` string, required

## Request body

- SignInWithCustomTokenRequestSchema — The request body for signing in with a custom token
  - `token` string, required — The custom token to sign in with

## Response `200`

The response to generating a custom token

- object — The response to generating a custom token
  - `idToken` string, required
  - `refreshToken` string, required
  - `expiresIn` string, required
  - `isNewUser` boolean, required

---

[API](https://skmtc.net/otherside/apis/accounts.md) · [All operations](https://skmtc.net/otherside/apis/accounts/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/otherside/accounts/revisions/99b138ac9152/schema)
