---
title: "Register"
method: POST
path: "/api/v1/auth/register"
tags: ["Authentication"]
---

# Register

`POST /api/v1/auth/register`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v1/auth/register`
- Auth: none required

Create a new user account and receive an API token.

## Request body

- object
  - `first_name` string, required: The user's first name.
  - `last_name` string, required: The user's last name.
  - `email` string, required: The user's email address.
  - `password` string, required: The password (min 8 chars).
  - `marketing_consent` boolean
  - `timezone` string, nullable: Must not be greater than 64 characters.
  - `referral_code` string, nullable: Must not be greater than 32 characters.
  - `partner_code` string, nullable: A partner code typed in the app. Unknown, inactive or own codes are ignored.
  - `password_confirmation` string, required: Must match password.

## Response `201`

Signed up

- object
  - `user` object
    - `id` integer
    - `first_name` string
    - `last_name` string
    - `email` string
    - `phone` string, nullable
    - `bio` string, nullable
    - `preferred_language` string, nullable
    - `timezone` string
    - `profile_photo_url` string, nullable
    - `has_pro_access` boolean
    - `subscription_plan` string
    - `can_create_trip` boolean
    - `max_saved_trips` integer
    - `is_anonymous` boolean
    - `marketing_consent` boolean
    - `marketing_consent_source` string
    - `created_at` string
  - `token` string
  - `expires_in` integer
  - `expires_at` string

## Other responses

- `422`
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`: server_error: Unhandled failure; quote `request_id` to support.

---

[API](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api.md) · [All operations](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/revisions/ae82ed3e4a8f?raw)
