Generate developer token

1

Generate a developer token using your admin token

Use your admin token to create developer tokens (also called usage tokens) for your developer team.
curl -X POST https://voiceharbor.ai/api/admin/developer-token \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN"
Response:
{
  "developerToken": "abc123-usage-token"
}

Minimal Biometric Redaction (uses defaults)

curl -X POST https://voiceharbor.ai/api/speech-to-speech-biometric-redaction \
  -H "Authorization: Bearer developerToken" \
  -H "Content-Type: multipart/form-data" \
  -F "source_audio=@./martin.wav" \
  --output result.wav

Token and job monitoring

1

View all developer tokens created under your admin token

Use your admin token to retrieve a list of all usage tokens you’ve generated.
curl -X GET https://voiceharbor.ai/api/admin/developer-tokens \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN"
Response:
{
  "developerTokens": [
    {
      "usage_token": "abc123-usage-token",
      "created_at": "2025-08-28T12:34:56Z"
    }
  ]
}
2

Monitor jobs and usage with developer tokens

Use your developer token to view jobs and job content.List jobs:
curl -X GET https://voiceharbor.ai/api/jobs \
  -H "Authorization: Bearer YOUR_DEVELOPER_TOKEN"
Response:
{
  "jobs": [
    {
      "job_id": "job-xyz",
      "token": "abc123-usage-token",
      "created_at": "2025-08-28T10:00:00Z"
    }
  ]
}
Get job content:
curl -X GET https://voiceharbor.ai/api/jobs/JOB_ID/content \
  -H "Authorization: Bearer YOUR_DEVELOPER_TOKEN"
Response:
{
  "jobContent": [
    {
      "id": 1,
      "job_id": "job-xyz",
      "file_name": "audio1.wav",
      "audio_duration": 123,
      "created_at": "2025-08-28T10:01:00Z"
    }
  ]
}