{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"44e999b3-cb3a-4046-a35d-7c8557af02ca","name":"API Documentation","description":"### Introduction\n\nWelcome to the Audiosocket API! Our API allows you to interact with Audiosocket's platform to access and manage audio content efficiently. This documentation will guide you through the various endpoints available, how to authenticate your requests, and examples of how to use the API.\n\n### Authentication\n\nThe Audiosocket API uses Bearer Token authentication to ensure secure access to our services. You will need to include the Bearer Token in the Authorization header of your requests. Here’s how you can do it:\n\n1. **Obtain a Bearer Token**:\n    \n    - To obtain a Bearer Token, you must authenticate with the Audiosocket platform using your credentials. The token is usually provided after successful authentication.\n        \n2. **Include the Bearer Token in Requests**:\n    \n    - Once you have the token, include it in the Authorization header of your API requests. Here’s an example:\n        \n\n| Header | Description |\n| --- | --- |\n| `Authorization` | Bearer ffm9neqksfugx33b2th4czb9z |\n\nThe token will be given by Audiosocket which you can replace with {{token}} variable in postman to run the calls.\n\n### HTTP Status Codes\n\nThe Audiosocket API uses standard HTTP status codes to indicate the success or failure of an API request. Here’s a guide to the most common status codes you may encounter while using the API:\n\n2xx: Success\n\n- { \"status\": 200, \"message\": \"OK\", \"data\": \\[ /\\* array of tracks \\*/ \\]}\n    \n    - _Example_: A `GET` request to retrieve a list of tracks succeeded.\n        \n- { \"status\": 201, \"message\": \"Created\", \"data\": { /\\* newly created track data \\*/ }}\n    \n    - _Example_: A `POST` request to create a new track succeeded.\n        \n- { \"status\": 204, \"message\": \"No Content\"}\n    \n    - _Example_: A `DELETE` request to remove a track succeeded.\n        \n\n#### 4xx: Client Errors\n\n- { \"status\": 400, \"message\": \"Bad Request\", \"error\": \"Invalid or missing parameters\"}\n    \n    - _Example_: A required parameter is missing or malformed.\n        \n- { \"status\": 401, \"message\": \"Unauthorized\", \"error\": \"Invalid or missing Bearer Token\"}\n    \n    - _Example_: The Bearer Token is missing or invalid.\n        \n- { \"status\": 403, \"message\": \"Forbidden\", \"error\": \"Access to this resource is denied\"}\n    \n    - _Example_: The user does not have permission to access the resource.\n        \n- { \"status\": 404, \"message\": \"Not Found\", \"error\": \"Resource not found\"}\n    \n    - _Example_: A `GET` request for a track with a non-existent ID.\n        \n- { \"status\": 409, \"message\": \"Conflict\", \"error\": \"Resource conflict\"}\n    \n    - _Example_: Attempting to create a duplicate resource.\n        \n\n#### 5xx: Server Errors\n\n- { \"status\": 500, \"message\": \"Internal Server Error\", \"error\": \"An unexpected error occurred\"}\n    \n    - _Example_: A database error occurred while processing the request.\n        \n- { \"status\": 503, \"message\": \"Service Unavailable\", \"error\": \"The server is currently unavailable\"}\n    \n    - _Example_: The server is temporarily down for maintenance.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"36635707","team":6316746,"collectionId":"44e999b3-cb3a-4046-a35d-7c8557af02ca","publishedId":"2sA3duFtAK","public":true,"publicUrl":"https://api-docs.audiosocket.com","privateUrl":"https://go.postman.co/documentation/36635707-44e999b3-cb3a-4046-a35d-7c8557af02ca","customColor":{"top-bar":"FFFFFF","right-sidebar":"1a1c1d","highlight":"c1d72d"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":"AudioSocket API"}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/92a992fd-6ed6-4b09-b179-5c742985fb78/YmxhY2stbG9nby5wbmc=","colors":{"top-bar":"1a1c1d","right-sidebar":"1a1c1d","highlight":"c1d72d"}},{"name":"light","logo":"https://content.pstmn.io/f7850ca5-3143-4ded-81f9-55785ca0cc55/d2hpdGUtbG9nby5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"1a1c1d","highlight":"c1d72d"}}]}},"version":"8.10.1","publishDate":"2024-06-29T12:54:52.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"AudioSocket API","description":""},"logos":{"logoLight":"https://content.pstmn.io/f7850ca5-3143-4ded-81f9-55785ca0cc55/d2hpdGUtbG9nby5wbmc=","logoDark":"https://content.pstmn.io/92a992fd-6ed6-4b09-b179-5c742985fb78/YmxhY2stbG9nby5wbmc="}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/66932aeaafdd62e60e91f2fa11cc9bbf4c2b84e44fe846e26b0b86cd9c0cd822","favicon":"https://audiosocket.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://api-docs.audiosocket.com/view/metadata/2sA3duFtAK"}