Issue a grant
Patch or revoke a grant
| Property | Value |
|---|---|
| Auth | Required |
| Required scope | Caller must own the integration |
| Idempotent | POST no. PATCH yes. DELETE yes. |
Body (POST)
| Field | Type | Required | Notes |
|---|---|---|---|
integrationId | string | yes | Integration the grant covers. |
granteeEmail | string | yes | Recipient email. Does not need an account yet. |
expiresInHours | integer | yes | Grant TTL. Max 720 (30 days). |
scope | read | write | yes | Read or write scope on the integration. |
Errors
| Status | Code | When |
|---|---|---|
| 401 | AUTH_REQUIRED | No session. |
| 403 | FORBIDDEN | Caller does not own the integration. |
| 404 | Grant not found | Bad id. |
| 500 | INTERNAL_ERROR | Write failed. |