---
title: "Create sign-in token"
method: POST
path: "/sign_in_tokens"
tags: ["Sign-in Tokens"]
---

# Create sign-in token

`POST /sign_in_tokens`

Creates a new sign-in token and associates it with the given user.
By default, sign-in tokens expire in 30 days.
You can optionally supply a different duration in seconds using the `expires_in_seconds` property.

## Request body

- object
  - `user_id` string, required — The ID of the user that can use the newly created sign in token
  - `org_id` string, nullable — The ID of the organization to activate when the user signs in. Organizations must be enabled for the instance, and the user must be a member of the organization.
  - `expires_in_seconds` integer, nullable — Optional parameter to specify the life duration of the sign in token in seconds. By default, the duration is 30 days.

## Response `200`

Success

- SignInToken
  - `object` 'sign_in_token', required
  - `id` string, required
  - `status` 'pending' | 'accepted' | 'revoked', required
  - `user_id` string, required
  - `token` string
  - `url` string, nullable
  - `created_at` integer, required — Unix timestamp of creation.
  - `updated_at` integer, required — Unix timestamp of last update.

## Other responses

- `403` — Authorization invalid
- `404` — Resource not found
- `422` — Invalid request parameters

---

[API](https://skmtc.net/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.net/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clerk/clerk-backend-api/revisions/7d969765e49a/schema)
