---
title: "Decline a pending workspace invitation"
description: "PubNio API me.invites.decline: decline a pending workspace invitation. Request fields, examples in five clients, errors, and idempotency."
---

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

# Decline a pending workspace invitation

Decline a pending workspace invitation with [`POST /api/v1/me/invites/{inviteId}/decline`](https://pubnio.com/api/v1/docs#tag/me/POST/api/v1/me/invites/{inviteId}/decline). Requires a signed-in user, in the web app or the CLI; API keys are not accepted and MCP cannot call it. The invitation must match your verified email.

## Request

| Parameter  | In   | Type | Required |
| ---------- | ---- | ---- | -------- |
| `inviteId` | path | UUID | Yes      |

## Response

- HTTP 200: `WorkspaceInviteDeclined` with `declined`, `remoteRevocationPending`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const declined = await client.me.declineInvite(inviteId);
```

Create this client with a signed-in person's `accessToken`, not an `apiKey`.

### Python

The Python SDK authenticates with a workspace API key, which this operation does not accept, so it has no method for it.

### cURL

```sh
curl -X POST "https://pubnio.com/api/v1/me/invites/$INVITE_ID/decline" \
  -H "Authorization: Bearer $PUBNIO_TOKEN"
```

### CLI

```sh
pnio profile invites decline "$INVITE_ID"
```

### MCP execute

```js
async () => {
  const inviteId = "<inviteId>";
  const response = await codemode.request({
    method: "POST",
    path: `/api/v1/me/invites/${inviteId}/decline`,
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [every Your invitations operation](https://pubnio.com/docs/reference/#your-invitations) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

No key, so a retried `POST` is not deduplicated. Read the current state before you retry.

## Limits

- API keys and MCP cannot call it. A signed-in person runs it from the CLI after `pnio auth login` or in the web app.

## Related

- [Your invitations operations](https://pubnio.com/docs/reference/#your-invitations)

Source: https://pubnio.com/docs/reference/me-invites-decline/index.mdx
