Adobe PDF Services API

Adobe PDF Services API

Hello,

Big stretch here, but I'm wondering if anyone here can point me in the right direction.  I'm attempting to connect to an Adobe api to manipulate a pdf I have in WorkDrive.  I'm able to get the Bearer token, but the next piece is to get the upload URI and asset id.  Adobe's documentation gives this as a reference:

  1. curl --location --request POST 'https://pdf-services.adobe.io/assets' \
  2. --header 'X-API-Key: {{Placeholder for client_id}}' \
  3. --header 'Authorization: Bearer {{Placeholder for token}}' \
  4. --header 'Content-Type: application/json' \
  5. --data-raw '{
  6.     "mediaType": "{{Placeholder for mediaType}}"
  7. }'

The code I'm using:
  1. adobeUploadUrl = "https://pdf-services.adobe.io/assets";
  2. uploadHeader = {"X-API-Key":"efa5ef5bc6594dXXXXXXXXXX","Authorization":"Bearer" + adobeKey,"Content-Type":"application/json"};
  3. uploadParam = {"mediaType":"application/pdf"};
  4. uploadToAdobe = invokeurl
  5. [
  6. url: adobeUploadUrl
  7. type: POST
  8. parameters: uploadParam
  9. headers: uploadHeader
  10. ];
  11. info "Return: " + uploadToAdobe;
On my info statement, I'm getting back:
 1696522222342.vnd.adobe.dc+json

Anyone able to point me in the right direction?
Thanks