The CURL request:

curl --location 'https://das-api.das.ipobs.acc.web1.wipo.int/das-api/v1/requests/files/url-uploads' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <<your authorization token coming from the previous request>>' \
--data '{
  "fileReference": "<< text to identify this request>>",
  "fileFormatCategory": "pdf",
  "fileChecksum": "<<sha256 checksum of the file to upload"
}'

Request sample:

curl --location 'https://das-api.das.ipobs.acc.web1.wipo.int/das-api/v1/requests/files/url-uploads' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiOiI3bEhXSFovZ1h6ajJ4WFdBcXFQMVRIUDdHZzA9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkYXMtaWItcGN0MS1hcGktaWQiLCJjdHMiOiJPQVVUSDJfU1RBVEVMRVNTX0dSQU5UIiwiYXVkaXRUcmFja2luZ0lkIjoiZmIwN2I5MjctOTg4MC00ZjM0LTg5YzUtMTgzYmJjODEwYWZhLTYxMzI2MiIsImlzcyI6Imh0dHBzOi8vd3d3NS53aXBvLmludC9hbS9vYXV0aDIiLCJ0b2tlbk5hbWUiOiJhY2Nlc3NfdG9rZW4iLCJ0b2tlbl90eXBlIjoiQmVhcmVyIiwiYXV0aEdyYW50SWQiOiJkTmxCNEJ5ejZoWE5ZMWNXQjVaZmRMTFlIazQiLCJhdWQiOiJkYXMtaWItcGN0MS1hcGktaWQiLCJuYmYiOjE2ODAwMDEzNjAsImdyYW50X3R5cGUiOiJjbGllbnRfY3JlZGVudGlhbHMiLCJzY29wZSI6WyJkYXMtYXBpL29mZmljZS1leGNoYW5nZSJdLCJhdXRoX3RpbWUiOjE2ODAwMDEzNjAsInJlYWxtIjoiLyIsImV4cCI6MTY4MDAwNDk2MCwiaWF0IjoxNjgwMDAxMzYwLCJleHBpcmVzX2luIjozNjAwLCJqdGkiOiI1ZXVOaEZUTEl5VkNYSkZvVDMzeDNfMGFiQ3MifQ.IWqCNI_St_2bqJblfd3LYb63UFbvmdVlxl7mxYLEXwQOO4PysiisJohP16KV9A8uGS_QwqW3ymXk1NhHg6--Sj6sTTJfT1A4L_K69L3XPpUirujO01kCIKVRwpgduqkR1zd9aBKAcBXOs5jg7PBL-r7jRlgoWTk_1T6VVff02TVYPWm_EP2JTnF7RxzvG_koqH54FyBFnlHE18i78lyYzpXDn3cHGWtgI971XAQ9aO-jZh5OJ1epnc6_u1R4JYdxANgrwPLgkjoB1VXNdK-ZjW-VbYPAsX5ogzzOs-psc2aREXtZD_rvgsXAZLMRD_kAGS9ip3uos1PFXwsis-VJ0A' \
--data '{
  "fileReference": "file_reference_created_on_1680001366",
  "fileFormatCategory": "pdf",
  "fileChecksum": "c08bf963418786c2ee959d3ba97d7c71b34f7a35d058198c02af4d5f19f62fb4"
}'

Expected response:

{"access_token":"<<the token that is generated for you>>","scope":"das-api/office-exchange","token_type":"Bearer","expires_in":3599}

Sample response:

{"fileId":"<<the fileId of the new file to register>>","fileUploadUrl":"<<the url to use for the upload of the document via put>>","fileReference":"<<your file reference>>","fileFormatCategory":"pdf","fileChecksum":"<<the sha256 checksum of the file to upload>>","fileContentType":"application/pdf","fileUrlExpiresIn":"<<the expected time for the url to expire>>"}
  • No labels