---
title: "Create an invitation"
method: POST
path: "/account/invitations"
tags: ["Accounts"]
---

# Create an invitation

`POST /account/invitations`

## Request

- Base URL: `https://app.honeybadger.io/v3`
- URL: `https://app.honeybadger.io/v3/account/invitations`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/honeybadger/apis/honeybadger-api/docs/account/invitations/post.ts> (a function with typed inputs; its response is checked against the schema)

Invites a user to the account.

## Request body

- AccountInvitationCreateInput: Writable account-invitation attributes
  - `email` string, email, required
  - `role` 'Owner' | 'Admin' | 'Member': A member's role in the account.
  - `disable_email_notifications` boolean: Create the member with email notifications off
  - `team_ids` string[], nullable: IDs of teams to add the invitee to.

## Response `201`

Invitation created

- object
  - `data` AccountInvitation, required: An invitation to join an account
    - `id` string, required
    - `account_id` string, required: ID of the account
    - `email` string, required: Email address of the invitee
    - `role` 'Owner' | 'Admin' | 'Billing' | 'Member' | 'null', nullable: Role granted upon acceptance
    - `created_at` string, date-time: When the invitation was created
    - `accepted_at` string, date-time, nullable: When the invitation was accepted
    - `created_by` object, nullable: User who created the invitation
      - `id` string: ID of the user
      - `name` string, nullable: User name
      - `email` string: User email
    - `accepted_by` object, nullable: User who accepted the invitation
      - `id` string: ID of the user
      - `name` string, nullable: User name
      - `email` string: User email
  - `meta` ResponseMeta
    - `request_id` string: Unique identifier for the request, for correlating with support

## Other responses

- `401`: The credential is missing, invalid, expired or revoked (`unauthorized`), or was sent in a way v3 doesn't accept (see the examples).
- `403`: The credential isn't allowed to do this. `error.code` says why. An account or project the credential doesn't cover is 404 `not_found`, not 403.
- `422`: Validation error

---

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