---
title: "New Endpoint"
method: POST
path: "/hooks/v1/auth0/actions/token"
---

# New Endpoint

`POST /hooks/v1/auth0/actions/token`

This is your first endpoint! Edit this page to start documenting your API.

## Request body

- object
  - `auth0Id` string, required — Auth0 user identifier (typically "auth0|{sub}" format from Auth0 user object). Example: auth0|1234567890
  - `email` string, required — User email address (must contain @). Example: user@example.com
  - `firstName` string, required — User first name. Example: John
  - `lastName` string, required — User last name. Example: Smith
  - `locale` string, required — User locale (language_COUNTRY format). Example: en_US
  - `country` string, required — ISO 3166-1 alpha-2 country code. Example: US
  - `currency` string, required — ISO 4217 currency code. Example: USD
  - `userIpAddress` string, required — User IP address (validated as valid IPv4 or IPv6). Example: 192.168.1.1
  - `expiresAt` integer — Optional Unix timestamp (seconds since epoch) when the access token should expire. Must be in the future. If not provided, uses the publisher's default accessTokenExpiration configuration. Example: 1736870400

## Response `200`

Successful response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `409` — Conflict

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/revisions/00cbfe7998a4/schema)
