Requester
When your integration acts for someone else — a person in Slack, a CMS editor, a support agent — send a requester naming that person. It records who the work was for, on the project and on its charges, so usage can be traced back to a person rather than just the API key.
The requester grants no permissions. The call is still authorised by your API key and its scopes alone. Naming a requester never widens what the key can do or see.
Fields
| Field | Required | Notes |
|---|---|---|
tenant_id |
yes | Your id for the person's organisation or tenant |
external_id |
yes | Your id for the person, unique within the tenant |
email |
no | The person's email (max 320 chars) |
name |
no | The person's display name |
source |
no | Where the request came from — an object, see below |
source.app |
yes, if source is sent |
The app the request came from, e.g. slack |
source.workspace_id |
no | Workspace or account id in that app |
source.location_id |
no | Channel, conversation or similar id |
source.location_name |
no | Display name of that location, e.g. #marketing |
Every string is 1–200 characters unless noted. Unknown keys are rejected. The whole object may be at most 2 KB (2048 bytes, UTF-8) as JSON.
{
"tenant_id": "E0789",
"external_id": "U0123",
"email": "ann@example.com",
"name": "Ann Lee",
"source": {
"app": "slack",
"workspace_id": "T0123",
"location_id": "C0456",
"location_name": "#marketing"
}
}
Email and accounts
When email belongs to a verified member of your organisation, the work is recorded under that person's account: it shows in their projects as if they had created it, including for members whose role only lets them see their own projects. Otherwise the requester is stored exactly as you sent it.
Matching never fails your call. If the email belongs to nobody in your organisation, or the lookup cannot complete, the request goes ahead and the requester is recorded without an account.
Reading it back
Project responses (GET /v1/projects, GET /v1/projects/{id}, and the create response) and the data of every project webhook event carry requester. It is null when none was sent. Otherwise it holds what you sent, plus two fields:
user_id— the id of the organisation member the work was recorded under, when the email matched.matched_by—email(more values may be added).
"requester": {
"tenant_id": "E0789",
"external_id": "U0123",
"email": "ann@example.com",
"user_id": "8c1d2e3f-0a4b-4c5d-9e6f-7a8b9c0d1e2f",
"matched_by": "email"
}
To list one person's projects, see Filter by requester. In test mode the requester is recorded as sent, and user_id and matched_by are always null because no email match runs.
Where to send it
-
POST /v1/projects— a multipart form field namedrequester, holding the object as a JSON-encoded string:-F 'requester={"tenant_id":"E0789","external_id":"U0123","email":"ann@example.com"}' -
POST /v1/text/translate— arequesterobject in the JSON body:{ "texts": [{ "ref": "greeting", "text": "Hello", "target_language_codes": ["ja-jp"] }], "requester": { "tenant_id": "E0789", "external_id": "U0123" } }
Resume calls — POST /v1/projects/{id}/resumptions and POST /v1/projects/{id}/review/resumptions — take no requester. Work they start keeps the requester the project was created with.
Keys that require a requester
An API key can be set to require a requester on every write. A create or translate call on such a key without a requester is rejected with 422 validation_failed, and field_errors[0].field is requester. See Errors.
A malformed requester is also a 422 validation_failed. On POST /v1/projects, field is requester and message starts with Invalid requester:. On POST /v1/text/translate, field is the path to the bad value, e.g. requester.external_id; a requester over 2 KB is reported on the request body, so field is null and message names the limit.
Test mode
A test key (abr_test_…) enforces the requirement exactly as a live key does, so you can check your integration sends a requester. It never matches an email to an account. See Test mode.