Stage-based admin functionalities

1

Usage token generation.

Use your admin token to create as multiple usage token, designed to be shared with your developer team.

Minimal example:

HttpResponse<String> response = Unirest.post("http://voiceharbor.ai/api/admin/developer-token")
  .header("Authorization", "Bearer <token>")
  .asString();

Return:

{
"developerToken": "<string>"
}
2

Usage token monitoring.

Use your admin token to obtain a list of all generated usage token’s.

Minimal example:

HttpResponse<String> response = Unirest.get("http://voiceharbor.ai/api/jobs/{jobId}/content")
.header("Authorization", "Bearer <token>")
.asString();

Return:

{
  "jobContent": [
    {
      "id": 123,
      "job_id": "<string>",
      "file_name": "<string>",
      "audio_duration": 123,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}
3

Job and usage monitoring.

Use the usage token to obtain all created job’s.

Minimal example:

HttpResponse<String> response = Unirest.get("http://voiceharbor.ai/api/jobs")
  .header("Authorization", "Bearer <token>")
  .asString();

Return:

{
  "jobs": [
    {
      "job_id": "<string>",
      "token": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Use the usage token and job id to obtain all finalised file names.

Minimal example:

HttpResponse<String> response = Unirest.get("http://voiceharbor.ai/api/jobs/{jobId}/content")
  .header("Authorization", "Bearer <token>")
  .asString();

Return:

{
  "jobContent": [
    {
      "id": 123,
      "job_id": "<string>",
      "file_name": "<string>",
      "audio_duration": 123,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Parameters