{
  "opencollection": "1.0.0",
  "info": {
    "name": "Narakeet API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "apikey": {
        "key": "x-api-key",
        "value": "{{apiKey}}",
        "in": "header"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Text to Speech",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Build MP3 audio (streaming)", "type": "http" },
          "http": {
            "method": "POST",
            "url": "https://api.narakeet.com/text-to-speech/mp3?voice=mickey",
            "headers": [
              { "name": "Accept", "value": "application/octet-stream" },
              { "name": "Content-Type", "value": "text/plain" }
            ],
            "params": [
              { "name": "voice", "value": "mickey", "type": "query", "description": "Voice name (see the Voices endpoint)." }
            ],
            "body": { "type": "text", "data": "Hello from the Narakeet text to speech API." }
          },
          "docs": "Short-content streaming mode (input up to ~1 KB). Returns audio bytes directly; duration is in the x-duration-seconds response header."
        },
        {
          "info": { "name": "Build M4A audio (polling)", "type": "http" },
          "http": {
            "method": "POST",
            "url": "https://api.narakeet.com/text-to-speech/m4a?voice=victoria&voice-speed=1.1",
            "headers": [
              { "name": "Content-Type", "value": "text/plain" }
            ],
            "params": [
              { "name": "voice", "value": "victoria", "type": "query", "description": "Voice name." },
              { "name": "voice-speed", "value": "1.1", "type": "query", "description": "Reading speed multiplier." }
            ],
            "body": { "type": "text", "data": "Longer scripts up to about 1024 KB use the JSON polling mode." }
          },
          "docs": "Long-content JSON polling mode (input up to ~1024 KB). Returns a JSON object with a statusUrl to poll for the result."
        },
        {
          "info": { "name": "Build WAV audio (polling only)", "type": "http" },
          "http": {
            "method": "POST",
            "url": "https://api.narakeet.com/text-to-speech/wav?voice=rodney",
            "headers": [
              { "name": "Content-Type", "value": "text/plain" }
            ],
            "params": [
              { "name": "voice", "value": "rodney", "type": "query", "description": "Voice name." }
            ],
            "body": { "type": "text", "data": "Uncompressed WAV output is only available via the polling API." }
          },
          "docs": "Uncompressed 16-bit PCM WAV output. Available only via the long-content polling mode."
        }
      ]
    },
    {
      "info": {
        "name": "Video",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Request a video upload token", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.narakeet.com/video/upload-request/zip"
          },
          "docs": "Returns a pre-signed url to PUT the zip archive to, plus repository and repositoryType identifiers for the build request."
        },
        {
          "info": { "name": "Trigger a video build", "type": "http" },
          "http": {
            "method": "POST",
            "url": "https://api.narakeet.com/video/build",
            "headers": [
              { "name": "Content-Type", "value": "application/json" }
            ],
            "body": { "type": "json", "data": "{\n  \"source\": \"script.md\",\n  \"repository\": \"REPOSITORY_FROM_UPLOAD_TOKEN\",\n  \"repositoryType\": \"REPOSITORY_TYPE_FROM_UPLOAD_TOKEN\"\n}" }
          },
          "docs": "Starts an asynchronous build from the uploaded zip. Returns a JSON object with a statusUrl to poll for the finished video."
        }
      ]
    },
    {
      "info": {
        "name": "Voices",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "List available voices", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.narakeet.com/voices"
          },
          "docs": "Returns a JSON array of voices (name, language, languageCode, styles). Does not consume credits but counts toward the daily request quota; cache the result."
        }
      ]
    },
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": { "name": "Get account credits", "type": "http" },
          "http": {
            "method": "GET",
            "url": "https://api.narakeet.com/account/credits"
          },
          "docs": "Returns creditSeconds still available plus billing plan and identity metadata for the API key."
        }
      ]
    }
  ],
  "bundled": true
}
