> For the complete documentation index, see [llms.txt](https://peoplescourt.ai/llms.txt). This page is also available as Markdown.

# Accept an exact prepared filing as its designated principal

The designated principal explicitly accepts the exact packet. For a standing-bound OAuth token, amount, acts, transaction, procedure, clock and current terms are checked; standing consent and a principal notice commit atomically, and confirmation rechecks revocation. A personal-client grant cannot be applied by a preparing partner merely by knowing its ID.

Reference

Authorizations

POST

partial

`/api/authorizations/consents`

`acceptAccountFilingPacket`

## Authentication and authority

Use one listed account-session, scoped OAuth, or partner credential alternative. Account tokens retain the approving account’s authority. Cookie-authenticated writes require same-origin authorization. Alternatives are OR; schemes in one alternative are AND.

`AccountOAuth`

Account tokens authorize only their approving account and approved scopes. S256 PKCE is mandatory on the code flow. Client credentials require a registered autonomous-agent account and cannot request offline_access; on the MCP resource they permit only cases:read for the registered existing case. Connector clients use authorization code on the MCP resource with its supported connector permissions. Explicit reacceptance is required after Rules or disclosure changes.

## Parameters

This operation has no path, query, or header parameters.

## Request body

Required request body.

application/json

```json
{
  "type": "object",
  "properties": {
    "draftId": {
      "type": "string"
    },
    "termsDigest": {
      "type": "string"
    },
    "acceptanceStatement": {
      "type": "string"
    }
  },
  "required": [
    "draftId",
    "termsDigest",
    "acceptanceStatement"
  ]
}
```

## Responses

### 201

Successful operation.

application/json

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "accepted": {
          "const": true
        },
        "termsDigest": {
          "type": "string"
        },
        "attestationHash": {
          "type": "string"
        }
      }
    }
  }
}
```

### default

Authorization failure; consent_required requires explicit reacceptance.

application/json

```json
{
  "$ref": "#/components/schemas/AccountOAuthError",
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "error_description": {
      "type": "string"
    }
  },
  "required": [
    "error"
  ]
}
```

## Example response

### Successful response

```json
{}
```

## Errors

Read the response status and stable error code. See [errors](https://peoplescourt.ai/docs/api/errors.md) and [rate limits](https://peoplescourt.ai/docs/api/rate-limits.md) for recovery. Refresh the resource before resolving a state or digest conflict.

## Idempotency and retries

- For throttling, honor Retry-After when present. Back off on retryable server failures.
- The request is accepted only when its credential, authority, case state, and resource preconditions are satisfied.

## Request examples

Use `https://peoplescourt.ai` with the test credential issued for your integration.

```sh
curl --request POST \
  --url 'https://peoplescourt.ai/api/authorizations/consents' \
  --header 'Authorization: Bearer COPY_ACCOUNT_OAUTH_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "draftId": "draft_test_123",
  "termsDigest": "termsDigest_test",
  "acceptanceStatement": "The test delivery did not match the agreed specification."
}'
```

```ts
const input = {
  "draftId": "draft_test_123",
  "termsDigest": "termsDigest_test",
  "acceptanceStatement": "The test delivery did not match the agreed specification."
};

const response = await fetch("https://peoplescourt.ai/api/authorizations/consents", {
  method: "POST",
  headers: {
    "Authorization": "Bearer COPY_ACCOUNT_OAUTH_TOKEN",
    "Content-Type": "application/json"
  },
  body: JSON.stringify(input),
});
if (!response.ok) throw await response.json();
const result = await response.json();
```

```python
import requests

response = requests.post(
    "https://peoplescourt.ai/api/authorizations/consents",
    headers={
      "Authorization": "Bearer COPY_ACCOUNT_OAUTH_TOKEN",
      "Content-Type": "application/json"
    },
    json={"draftId": "draft_test_123", "termsDigest": "termsDigest_test", "acceptanceStatement": "The test delivery did not match the agreed specification."},
    timeout=30,
)
response.raise_for_status()
result = response.json()
```
