Identity, people & notifications

Process Employee File

Parses an uploaded PDF/XLSX/CSV/DOCX (base64) and extracts employee rows with Claude, returning validated CSV.

POSThttps://api.toku.com/stablecoin-payroll/process-employee-file

Not available to API keys yet. It will need integrations:write.

curl --request POST \
  --url 'https://api.toku.com/stablecoin-payroll/process-employee-file' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fileName": "string",
  "fileSize": 0,
  "fileType": "string",
  "fileData": "string"
}'
200 response
{
  "success": true,
  "extractedData": "string",
  "totalEmployees": 0,
  "processingTime": 0,
  "warnings": [
    "string"
  ],
  "errors": [
    "string"
  ]
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.

Body

application/json

fileNamestringrequired
fileSizenumberrequired
fileTypestringrequired
fileDatastringrequired

Response

200Successful response
successbooleanrequired
extractedDatastringrequired
totalEmployeesnumberrequired
processingTimenumberrequired
warningsstring[]
errorsstring[]
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits