---
title: "Create a team invite (server-to-server)"
method: POST
path: "/api/v1/teams/{team}/invites"
tags: ["s2s"]
---

# Create a team invite (server-to-server)

`POST /api/v1/teams/{team}/invites`

Generates a new invite code for the specified team using server-to-server
authentication. Unlike the user-facing create endpoint, this variant does not
require the caller to be a team member — it is intended for privileged
back-end services acting on behalf of your platform.

The returned code is a short alphanumeric string that users can present to
join the team. Each call produces a new code; previously issued codes are
not invalidated by this request.

## Path parameters

- `team` string, required

## Response `200`

Successful response

- object — The newly created team invite containing the join code.
  - `code` string, required — Six-character alphanumeric join code. Present this value to the join-team endpoint to add a user to the team.

## Other responses

- `401` — Unauthorized
- `404` — Team not found

---

[API](https://skmtc.net/archastro/apis/archastro-platform-api.md) · [All operations](https://skmtc.net/archastro/apis/archastro-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/archastro/archastro-platform-api/versions/a8772b442f86/schema)
