---
title: "Decline one of my project invitations"
method: POST
path: "/project-invitations/{invite_id}/decline"
tags: ["projects"]
---

# Decline one of my project invitations

`POST /project-invitations/{invite_id}/decline`

## Request

- Base URL: `https://api.faable.com`
- URL: `https://api.faable.com/project-invitations/{invite_id}/decline`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://faable.auth.faable.link/authorize`, token URL `https://faable.auth.faable.link/oauth/token`)
  - HTTP bearer
  - OAuth 2 (client credentials, token URL `https://faable.auth.faable.link/oauth/token`)
  - HTTP bearer
  - HTTP basic
  - API key in query parameter `apikey`

The invitation is spent: its link stops working and it leaves the pending list of the project.

## Path parameters

- `invite_id` string, required

## Response `200`

Default Response

## Other responses

- `400`: `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
- `401`: `unauthorized` — The request carries no valid credentials. `invalid_token` — The bearer token is missing, malformed or expired.
- `403`: `invitation_email_mismatch` — The invitation is for another email address than the signed-in account. `details.invited_email` shows it masked. `invitation_email_unverified` — The signed-in account has the invited email but hasn't verified it yet. `forbidden` — The credentials are valid but do not allow this operation. `user_suspended` — The account is suspended. Contact support@faable.com.
- `404`: `invitation_invalid` — The invitation link is not valid (mistyped, or revoked and replaced).
- `409`: `invitation_used` — The invitation was already accepted or revoked.
- `410`: `invitation_expired` — The invitation expired. Ask for a new one.
- `429`: `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.
- `500`: `internal_error` — Unexpected server error. Retry later; the request id is logged.
- `503`: `database_unavailable` — Faable cannot reach its database right now. Transient: retry after the `Retry-After` header.

---

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