---
title: "Accept or decline invitation to a team"
url: "https://docs.signnow.com/docs/manage-users/operations/accept-decline-invitation-to-team"
type: "endpoint"
section: "manage-users"
slug: "manage-users/operations/accept-decline-invitation-to-team"
method: "PUT"
path: "/team/{request_id}/request"
operation_id: "accept-decline-invitation-to-team"
authorization: "bearer"
---

# Accept or decline invitation to a team

`PUT /team/{request_id}/request`

This endpoint allows API users to accept or decline an invite to join a team.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `request_id` | string | Yes | ID of the team invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "accept"
  ],
  "properties": {
    "accept": {
      "type": "boolean",
      "description": "`true` to accept the invite, `false` to decline it."
    }
  }
}
```

**Example** (`Request`)

```json
{
  "accept": true
}
```

## Responses

### 200

The invite was accepted or declined.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The team invite doesn't exist.
* The team invite was sent to another user.
* The request body is missing or isn't valid JSON.
* `accept` isn't `true` or `false`.
* The team invite was already accepted or declined.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invalid payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Invite not found`)

```json
{
  "errors": [
    {
      "code": 66392,
      "message": "Team request not found"
    }
  ]
}
```

**Example** (`Invite not pending`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "This request is not pending"
    }
  ]
}
```

**Example** (`Wrong accept value`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Accept must have a valid value."
    }
  ]
}
```

**Example** (`Invite belongs to another user`)

```json
{
  "errors": [
    {
      "code": 65598,
      "message": "You cannot access somebody else's team request"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/team/{request_id}/request" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"accept": true}'
```

---
*Full reference: https://docs.signnow.com/docs/manage-users/operations/accept-decline-invitation-to-team*
