---
title: "Accept an invitation"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accept an invitation

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/session/invitations/&#123;id&#125;/accept</code>
</div>
</div>

Makes the signed-in person a member of the inviting workspace with the invitation's role and access, in one step. The invitation must be pending, unexpired and to this person's own address; the person who invited must still be able to give that access. Accepting again answers the same. Only a signed-in person. An API key is refused with 401 `session_required`.

## Path parameters

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The person is a member of the workspace. |
| `401` | No usable credential was sent (`invalid_credentials`), or an API key was used (`session_required`). |
| `403` | The person who invited can no longer give this access (`role_required`). Nothing was written. |
| `404` | No pending, unexpired invitation to this login has this id (`unknown_invitation`). Nothing was written. |
| `409` | This login is already a member of the workspace (`already_member`). Its access is changed in Team. Nothing was written. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/accept-an-invitation/index.mdx
