---
title: "Generate Invite Code"
method: POST
path: "/api/trips/{trip_id}/invite"
tags: ["trips"]
---

# Generate Invite Code

`POST /api/trips/{trip_id}/invite`

## Request

- Base URL: `https://api.pointifytravels.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pointifytravels.com/api/trips/{trip_id}/invite`
- Auth: none declared

Generate an invite code for a trip.

## Path parameters

- `trip_id` string, required

## Request body

- GenerateInviteCodeRequest
  - `role` string
  - `max_uses` integer, nullable
  - `created_by` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine.md) · [All operations](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/revisions/4350142a4216?raw)
