---
title: "Invite a collaborator to a trip"
method: POST
path: "/v1/trips/{publicId}/collaborators"
tags: ["trips"]
---

# Invite a collaborator to a trip

`POST /v1/trips/{publicId}/collaborators`

## Request

- Base URL: `https://api.getmyhotels.com`
- URL: `https://api.getmyhotels.com/v1/trips/{publicId}/collaborators`
- Auth: HTTP bearer

Runs `itinerary.addCollaborator`; owner-only. The invitee must already have an account (404 with a sign-up hint otherwise); inviting yourself is a 400 and inviting an existing collaborator a 409. `role` defaults to `editor`. Returns `{ collaborator }`.

## Path parameters

- `publicId` string, required

## Request body

- object
  - `email` string, email, required
  - `role` 'editor'

## Response `200`

Success

- unknown

## Other responses

- `400`: Request validation failed or the router rejected the input
- `401`: Missing or invalid bearer session token
- `404`: Resource not found
- `409`: The request conflicts with the resource's current state
- `426`: Reported X-GMH-App-Version is below the supported minimum — the app must update
- `500`: Unexpected server error (opaque; details stay in logs)

---

[API](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api.md) · [All operations](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyhotels/apis/getmyhotels-rest-api/revisions/cba24a9c13f0?raw)
