Subcontractor API
Create a key ID and secret in your subcontractor workspace under Settings → API. Send both x-thide-key-id and x-thide-secret. The secret is shown once. Never put it in a URL, browser-side code or model prompt.
Open the Subco API contract for the exact inputs, outputs, file fields and permissions. Authenticated discovery lists the operations this key may use.
curl -H 'x-thide-key-id: YOUR_KEY_ID' \ -H 'x-thide-secret: YOUR_SECRET' 'https://thide.io/api/v1/assignee/operations'
| Method | Operation | Purpose |
|---|---|---|
| POST | jobs.list / jobs.export | List or export your assigned Requests and Jobs |
| POST | job.get | Read one request or job and its assignment versions |
| POST | assignment.decide / request.decide | Accept or decline assigned work |
| POST | document.download | Download a permitted document |
| POST | submission.create | Submit work for professional review |
| POST | messages.list / send / mark | Read, send and mark assignment messages |
| POST | terms.get / terms.accept | Read and explicitly accept current subcontractor terms |
Accept assigned work
Read job.get, then use the exact role and assignedAt returned. Supported work roles are translation and legalisation.
curl -H 'x-thide-key-id: YOUR_KEY_ID' -H 'x-thide-secret: YOUR_SECRET' \
-H 'content-type: application/json' -H 'Idempotency-Key: UNIQUE_OPERATION_ID' \
-d '{"operation":"assignment.decide","input":{"mandateId":"JOB_ID","role":"translation","assignedAt":"COPY_FROM_JOB_GET","accept":true}}' \
'https://thide.io/api/v1/assignee/operations'Set accept to false to decline. Use request.decide for a complete request decision with the current job versions. Declining or reassignment removes access immediately. Pending assignments cannot download or upload files.
Submit work
curl -H 'x-thide-key-id: YOUR_KEY_ID' -H 'x-thide-secret: YOUR_SECRET' \
-H 'Idempotency-Key: UNIQUE_OPERATION_ID' -F 'operation=submission.create' \
-F 'input={"mandateId":"JOB_ID","role":"translation","assignedAt":"COPY_FROM_JOB_GET"}' \
-F '[email protected]' 'https://thide.io/api/v1/assignee/operations'Use role legalisation for legalisation work. One file per submission, at most 100 MB. A 200 response contains data.findings and data.checksUnavailable. It means the file is stored for professional review; it does not release client delivery or authorize payment.
Every mutation requires Idempotency-Key. After an uncertain result, retry with the same key and identical encoded body, including the multipart boundary. Preserve the original encoded upload; a new curl invocation generates a different boundary. Pending outcomes must be reconciled before creating another operation.
First invitation and credential
An HTTP client can use https://thide.io/api/v1/identity/challenge with persona assignee and the invitation path, retain its cookie jar, then submit the inbox proof to /identity/verify. Inspect and decide the invitation through /identity/nomination, read and accept /identity/terms, then issue the first key through /identity/credentials. The contract includes these identity endpoints. An invitation token alone never grants access.
Access and errors
Keys belong to one active subcontractor account. The API excludes client identity, pricing, invoices, other subcontractors’ files and unrelated jobs. Completed jobs are read-only. Revoked or expired keys stop working on the next request. Existing legacy profile keys still use x-thide-assignee; do not mix that header with key ID and secret.
Errors use {"error":{"code":"…","message":"…"}}: 400 invalid input, 401 invalid credential, 403 missing permission or terms, 404 inaccessible resource, 409 stale assignment or workflow conflict, 413 oversized upload, 429 rate limit. Limit: 120 requests per minute per key; respect Retry-After.