API Reference
Library Item Revision

Create download token

code examples curl location globoff request post 'https //api catenda com/v2/projects/{project id}/libraries/{library id}/items/{library item id}/revisions/{library item revision id}/token' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api catenda com/v2/projects/{project id}/libraries/{library id}/items/{library item id}/revisions/{library item revision id}/token", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api catenda com/v2/projects/{project id}/libraries/{library id}/items/{library item id}/revisions/{library item revision id}/token") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api catenda com/v2/projects/{project id}/libraries/{library id}/items/{library item id}/revisions/{library item revision id}/token" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ok { "token" "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjpdgvtlwlkijoiztc3nju5yjliztqzndhkzdg1njzimwu3ymiwymzkzjgilcjsawjyyxj5lwlkijoinzzhzdfhythjnmninde1ytgxzte0zgvkngu2m2y3zmuilcj1c2vylwlkijoimju1ngjizdctmdkxzc00zwvjlwizmtmtoti5ogzlnde4yjq5iiwidhlwzsi6imxpynjhcnktaxrlbsisinbyb2ply3qtawqioiiyyta4ogjjzc0wogzhltqzogetodi1ms0yzdkxyjlhntk3ytiilcjjbgllbnqtawqioii1bvbesfh6nfnjrhj3vmyilcjlehaiojf3mtm5nzq3ndf9 mj67ensoitzjybeyt7yjes7akwruuxrt8 ewvqk5w98", "url" "https //api catenda com/v2/download?token=eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjpdgvtlwlkijoiztc3nju5yjliztqzndhkzdg1njzimwu3ymiwymzkzjgilcjsawjyyxj5lwlkijoinzzhzdfhythjnkninde1ytgxzte0zgvkngu2m2y3zmuilcj1c2vylwlkijoimju1ngjizdctmdkxzc00zwvjlwizmtmtoti5ogzlnde4yjq5iiwidhlwzsi6imxpynjhcnktaxrlbsisinbyb2ply3qtawqioiiyyta4ogjjzc0wogzhltqzogetodi1ms0yzdkxyjlhntk3ytiilcjjbgllbnqtawqioii1bvbesfh6nfnjrhj3vmyilcjlehaioje3mtm5nzq3ndf9 mj67ensoitzjybeyt7yjes7akwruuxrt8 ewvqk5w98" }