POST /api/v1/invitations/{id}/accept · Operation ID: acceptInvitationpermissions:write. Resource access and effective policy still apply.curl --fail-with-body -X POST 'https://handwrites.io/api/v1/invitations/REPLACE_INVITATION_ID/accept' \
-H "Authorization: Bearer $HANDWRITE_API_KEY"| Name | Location | Required | Meaning |
|---|---|---|---|
id | path | Yes | An invitation ID (inv_…). |
| Status | Meaning | Body format |
|---|---|---|
| 200 | The document and your permission (a higher role you hold is kept). | application/json |
| 401 | unauthorized: no token, or it's invalid, revoked or expired. | application/json |
| 403 | insufficient_scope, forbidden (you can see it but not do this), app_test_restricted, account_deleted (the account is scheduled for deletion; any request). | application/json |
| 404 | not_found: it doesn't exist or you can't see it (never 403 for documents you can't see). | application/json |
| 422 | limit_reached, idempotency_mismatch, unreadable_file, no_text, empty_document. | application/json |
| 429 | rate_limited (burst or daily cap) or quota_exceeded (no characters left). | application/json |
| 500 | internal_error. | application/json |