---
title: "Decline 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.

# Decline 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;/decline</code>
</div>
</div>

Closes a pending invitation to the signed-in person's own address. Only a signed-in person. An API key is refused with 401 `session_required`.

## Path parameters

## Status codes

| Status | Meaning |
|---|---|
| `204` | The invitation is declined. |
| `401` | No usable credential was sent (`invalid_credentials`), or an API key was used (`session_required`). |
| `404` | No pending invitation to this login has this id (`unknown_invitation`). |

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

</div>
</div>

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