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

# Record a claimant-agent authority assertion and artifact hashes

Records which authenticated claimant-agent credential made the assertion plus the supplied artifact references and hashes. This endpoint does not retrieve the artifacts or cryptographically verify an underlying principal signature. A platform-orchestrator credential cannot make the assertion. Canonical endpoint for the same role-bound partner credential operation. Account OAuth tokens do not substitute for partner credentials.

Reference

Partner platforms

POST

live

`/api/partner/authority-grants`

`registerPartnerAuthorityGrant`

## Authentication and authority

Send one of the allowed bearer credential roles. Alternatives are OR; credentials named within one alternative are AND.

`claimantAgentBearer`

Credential bound to the claimant_agent role. Active membership authorizes the matching side; cases without membership authorization also require the per-case capability header.

## Parameters

Name

Location

Requirement

Schema

`Idempotency-Key`

header

Required

{"type":"string","minLength":8,"maxLength":200}

## Request body

Required request body.

application/json

```json
{
  "$ref": "#/components/schemas/AuthorityGrantRegistration",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "claimantPrincipalId",
    "externalCaseId",
    "transactionId",
    "allowedActs",
    "maximumAmount",
    "evidenceSource",
    "artifactRefs",
    "artifactHashes",
    "expiresAt"
  ],
  "properties": {
    "claimantPrincipalId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "externalCaseId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "transactionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "allowedActs": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "file_dispute",
          "submit_evidence",
          "file_appeal",
          "answer_appeal",
          "file_post_award_request",
          "report_execution",
          "manage_representatives",
          "report_processing_defect",
          "file_procedural_request"
        ]
      }
    },
    "maximumAmount": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FiatMoney",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "currency",
            "minorUnits"
          ],
          "properties": {
            "currency": {
              "type": "string",
              "const": "USD"
            },
            "minorUnits": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,77})$"
            }
          }
        }
      ],
      "description": "Positive USD cents from 1 through 1000000000000000 inclusive. Zero and larger values are rejected with 422 validation_failed."
    },
    "evidenceSource": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "artifactRefs": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000
      }
    },
    "artifactHashes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$"
      }
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-12-01T00:00:00.000Z"
    }
  }
}
```

## Responses

### 201

The authenticated claimant-agent assertion was recorded.

application/json

```json
{
  "$ref": "#/components/schemas/AuthorityGrantRegistrationEnvelope",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "requestId"
  ],
  "properties": {
    "data": {
      "$ref": "#/components/schemas/AuthorityGrantRegistrationResult",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schemaVersion",
        "authorityGrantId",
        "claimantPrincipalId",
        "externalCaseId",
        "transactionId",
        "allowedActs",
        "maximumAmount",
        "expiresAt",
        "registeredBy"
      ],
      "properties": {
        "schemaVersion": {
          "type": "string",
          "const": "partner-authority-grant-v2"
        },
        "authorityGrantId": {
          "type": "string"
        },
        "claimantPrincipalId": {
          "type": "string"
        },
        "externalCaseId": {
          "type": "string"
        },
        "transactionId": {
          "type": "string"
        },
        "allowedActs": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "file_dispute",
              "submit_evidence",
              "file_appeal",
              "answer_appeal",
              "file_post_award_request",
              "report_execution",
              "manage_representatives",
              "report_processing_defect",
              "file_procedural_request"
            ]
          }
        },
        "maximumAmount": {
          "$ref": "#/components/schemas/FiatMoney",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "currency",
            "minorUnits"
          ],
          "properties": {
            "currency": {
              "type": "string",
              "const": "USD"
            },
            "minorUnits": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,77})$"
            }
          }
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "registeredBy": {
          "$ref": "#/components/schemas/ClaimantAuthorizationRegistrationProvenance",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "schemaVersion",
            "credentialPublicId",
            "role",
            "requestHash",
            "registeredAt"
          ],
          "properties": {
            "schemaVersion": {
              "type": "string",
              "const": "partner-authorization-registration-v2"
            },
            "credentialPublicId": {
              "type": "string"
            },
            "role": {
              "type": "string",
              "const": "claimant_agent"
            },
            "requestHash": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "registeredAt": {
              "type": "string",
              "format": "date-time"
            }
          }
        }
      }
    },
    "requestId": {
      "type": "string"
    }
  }
}
```

### default

RFC 9457 style problem response.

application/problem+json

```json
{
  "$ref": "#/components/schemas/Problem",
  "type": "object",
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail",
    "requestId"
  ],
  "properties": {
    "type": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "details": {
      "description": "Account-readiness refusals include a value-free checklist and exact account-page link. Other error codes may provide different details.",
      "anyOf": [
        {
          "$ref": "#/components/schemas/AccountReadinessDetails",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "ready",
            "accountSetupUrl",
            "missing"
          ],
          "properties": {
            "ready": {
              "type": "boolean"
            },
            "accountSetupUrl": {
              "type": "string",
              "format": "uri"
            },
            "missing": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountReadinessRequirement",
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "code",
                  "label",
                  "section",
                  "accountUrl"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "section": {
                    "type": "string",
                    "enum": [
                      "email",
                      "identity",
                      "legal_documents"
                    ]
                  },
                  "accountUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        {
          "$ref": "#/components/schemas/LegalDocumentsRequiredDetails",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "legalDocumentsUrl"
          ],
          "properties": {
            "legalDocumentsUrl": {
              "type": "string",
              "format": "uri",
              "description": "Absolute account-page URL where the person reviews and accepts the current Terms and Privacy Notice. Uses the configured public application origin. After accepting the documents, retry the original operation."
            },
            "ready": {
              "type": "boolean"
            },
            "accountSetupUrl": {
              "type": "string",
              "format": "uri"
            },
            "missing": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountReadinessRequirement",
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "code",
                  "label",
                  "section",
                  "accountUrl"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "section": {
                    "type": "string",
                    "enum": [
                      "email",
                      "identity",
                      "legal_documents"
                    ]
                  },
                  "accountUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        {}
      ]
    }
  }
}
```

## Example response

### Successful response

```json
{
  "data": {
    "schemaVersion": "partner-authority-grant-v2",
    "authorityGrantId": "grant_test_123",
    "claimantPrincipalId": "principal_test_123",
    "externalCaseId": "marketplace_case_123",
    "transactionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "allowedActs": [
      "file_dispute"
    ],
    "maximumAmount": {
      "currency": "USD",
      "minorUnits": "12500"
    },
    "expiresAt": "2026-08-09T12:00:00.000Z",
    "registeredBy": {
      "schemaVersion": "partner-authorization-registration-v2",
      "credentialPublicId": "credentialPublicId_test",
      "role": "claimant_agent",
      "requestHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "registeredAt": "2026-08-09T12:00:00.000Z"
    }
  },
  "requestId": "requestId_test"
}
```

## 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.
- Send a unique Idempotency-Key. An exact retry returns the stored result; reusing the key with a different request fails.
- 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/partner/authority-grants' \
  --header 'Authorization: Bearer pk_test_replace_me' \
  --header 'Idempotency-Key: idem_test_12345678' \
  --header 'Content-Type: application/json' \
  --data '{
  "claimantPrincipalId": "principal_test_123",
  "externalCaseId": "marketplace_case_123",
  "transactionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "allowedActs": [
    "file_dispute"
  ],
  "maximumAmount": {
    "currency": "USD",
    "minorUnits": "12500"
  },
  "evidenceSource": "evidenceSource_test",
  "artifactRefs": [
    "artifactRefs_test"
  ],
  "artifactHashes": [
    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  ],
  "expiresAt": "2026-12-01T00:00:00.000Z"
}'
```

```ts
const input = {
  "claimantPrincipalId": "principal_test_123",
  "externalCaseId": "marketplace_case_123",
  "transactionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "allowedActs": [
    "file_dispute"
  ],
  "maximumAmount": {
    "currency": "USD",
    "minorUnits": "12500"
  },
  "evidenceSource": "evidenceSource_test",
  "artifactRefs": [
    "artifactRefs_test"
  ],
  "artifactHashes": [
    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  ],
  "expiresAt": "2026-12-01T00:00:00.000Z"
};

const response = await fetch("https://peoplescourt.ai/api/partner/authority-grants", {
  method: "POST",
  headers: {
    "Authorization": "Bearer pk_test_replace_me",
    "Idempotency-Key": "idem_test_12345678",
    "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/partner/authority-grants",
    headers={
      "Authorization": "Bearer pk_test_replace_me",
      "Idempotency-Key": "idem_test_12345678",
      "Content-Type": "application/json"
    },
    json={"claimantPrincipalId": "principal_test_123", "externalCaseId": "marketplace_case_123", "transactionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "allowedActs": ["file_dispute"], "maximumAmount": {"currency": "USD", "minorUnits": "12500"}, "evidenceSource": "evidenceSource_test", "artifactRefs": ["artifactRefs_test"], "artifactHashes": ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], "expiresAt": "2026-12-01T00:00:00.000Z"},
    timeout=30,
)
response.raise_for_status()
result = response.json()
```
