{"info":{"name":"Pirsonal Video API Collection (Official)","_postman_id":"pirsonal-api-v3","description":"Official Postman Collection for Pirsonal Video Generation API v3 (16 Barrister JSON-RPC Methods + Direct Binary Upload).","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"https://app.pirsonal.com"},{"key":"accountID","value":"YOUR_ACCOUNT_ID"},{"key":"accountSecret","value":"YOUR_ACCOUNT_SECRET"},{"key":"templateID","value":"YOUR_TEMPLATE_ID"},{"key":"videoID","value":"YOUR_VIDEO_ID"},{"key":"mediaID","value":"YOUR_MEDIA_ID"},{"key":"pirsonalID","value":"YOUR_PIRSONAL_ID"},{"key":"parameters","value":"{}"}],"item":[{"name":"Template_New","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_New\",\n  \"params\": [\n    {\n      \"name\": \"Sample Template\",\n      \"videoOutput\": {\n        \"type\": \"pirsonal\"\n      },\n      \"outProfiles\": [\n        \"MP4_H264_AAC_1280x720_24fps\"\n      ],\n      \"inputScripts\": [\n        \"[{\\\"video\\\":{\\\"id\\\":\\\"video1\\\",\\\"play\\\":0,\\\"duration\\\":5000}}]\"\n      ]\n    }\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Creates a new Template\n\nReturns: the template ID"}},{"name":"Template_Update","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_Update\",\n  \"params\": [\n    \"{{templateID}}\",\n    {}\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Modifies an existing template\n\nReturns: \"OK\""}},{"name":"Template_SetStatus","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_SetStatus\",\n  \"params\": [\n    \"{{templateID}}\",\n    \"active\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Changes the status of an existing template\n\nReturns: \"OK\""}},{"name":"Template_Delete","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_Delete\",\n  \"params\": [\n    \"{{templateID}}\",\n    true\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Removes an existing template. If removeExternalFiles deletes external videos too (ie: youtube)\n\nReturns: \"OK\""}},{"name":"Template_List","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_List\",\n  \"params\": []\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Returns all templates associated with an account\n\nReturns: An array with all the templates"}},{"name":"Template_Video_New","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_Video_New\",\n  \"params\": [\n    \"{{templateID}}\",\n    {}\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Assings a Media with an script variable within a Template\n\nReturns: \"OK\" Template_Media_Assign (templateID string, media Media_t)                         string"}},{"name":"Template_Video_List","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Template_Video_List\",\n  \"params\": [\n    \"{{templateID}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Returns an array of videos created with a template\n\nReturns: An array with the videos"}},{"name":"Video_Get","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Video_Get\",\n  \"params\": [\n    \"{{videoID}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Returns the video info request by videoID\n\nReturns: A video"}},{"name":"Measurement_Token_Issue","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Measurement_Token_Issue\",\n  \"params\": [\n    \"{{videoID}}\",\n    \"{{source}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Issues a short-lived, scoped token for Player measurement events."}},{"name":"Video_Delete","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Video_Delete\",\n  \"params\": [\n    \"{{videoID}}\",\n    true\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Removes a video from an account. If removeFiles deletes external videos too (ie: youtube)\n\nReturns: \"OK\""}},{"name":"Video_Pirsonal_Link","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Video_Pirsonal_Link\",\n  \"params\": [\n    \"{{videoID}}\",\n    \"{{pirsonalID}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Returns the link to download a video stored in Pirsonal\n\nReturns: id and link of the video"}},{"name":"Video_Get_Links","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Video_Get_Links\",\n  \"params\": [\n    \"{{videoID}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Returns array with all the links to download a video\n\nReturns: array with video links"}},{"name":"Video_Update_Metadata","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Video_Update_Metadata\",\n  \"params\": [\n    \"{{videoID}}\",\n    {}\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Update video metadata, also in youtube if available\n\nReturns: \"OK\""}},{"name":"Video_Update","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Video_Update\",\n  \"params\": [\n    \"{{videoID}}\",\n    {}\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Update video info\n\nReturns: \"OK\""}},{"name":"Media_List","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Media_List\",\n  \"params\": []\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Returns an array of medias associated with the account\n\nReturns: An array with the medias"}},{"name":"Media_Delete","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Media_Delete\",\n  \"params\": [\n    \"{{mediaID}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Removes a media associated the the account\n\nReturns: \"OK\""}},{"name":"Media_Apply_Pattern","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"PirsonalAPI.Media_Apply_Pattern\",\n  \"params\": [\n    \"{{mediaID}}\",\n    \"audiolevel\",\n    \"info\",\n    \"{{parameters}}\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Apply a pattern to a media. Parameter for audiolevel are JSON.stringify({threshold: value})\n\nReturns: \"OK or JSON Error\""}},{"name":"Media_Upload (Binary)","request":{"method":"POST","header":[{"key":"Content-Type","value":"video/mp4"},{"key":"x-szn-filename","value":"sample.mp4"},{"key":"x-szn-description","value":"Sample uploaded video"}],"body":{"mode":"file"},"url":{"raw":"{{baseUrl}}/api/upload?accountID={{accountID}}&accountSecret={{accountSecret}}","host":["{{baseUrl}}"],"path":["api","upload"],"query":[{"key":"accountID","value":"{{accountID}}"},{"key":"accountSecret","value":"{{accountSecret}}"}]},"description":"Direct binary upload of video, image, or audio media to Pirsonal storage. Returns { media: PirsonalMedia_t }."}}]}