---
title: "Invitation invalid — Anis Developers"
description: "The invitation or its token is unknown, already used or expired. An invitation is valid for about a day by default."
url: https://developers.anis.ly/errors/invitation-invalid/
language: en
---

> Every page of this documentation: https://developers.anis.ly/llms.txt

[Error codes](https://developers.anis.ly/errors.md) · Enrolling a key

# Invitation invalid

- **Code:** `invitation_invalid`
- **Status:** 401
- **If this was an order:** Never returned when buying
- **Send it again unchanged?** No — change something first
- **.NET SDK:** `EnrollmentRefusedException`

## What it means

The invitation or its token is unknown, already used or expired. An invitation is valid for about a day by default.

## What to do

- Ask Anis staff for a new invitation.

## Where you can meet it

- GET [Read an invitation](https://developers.anis.ly/reference/read-invitation.md) `/v1/enrollments/{invitationId}`
- POST [Submit a public key](https://developers.anis.ly/reference/submit-key.md) `/v1/enrollments/{invitationId}/keys`
- POST [Prove you hold the key](https://developers.anis.ly/reference/submit-proof.md) `/v1/enrollments/{invitationId}/proof`
- GET [Read enrolment status](https://developers.anis.ly/reference/read-enrollment-status.md) `/v1/enrollments/{invitationId}/status`

## Example

The body of the refusal. Its `type` is the address of this page.

```
{
  "type": "https://developers.anis.ly/errors/invitation-invalid",
  "title": "Invitation invalid",
  "status": 401,
  "code": "invitation_invalid",
  "requestId": "01J9R2K8T4V6XQ0M3B7C5D9E1F"
}
```
