Generate the URL to Upload the Attachment

Generates the URL for uploading the expense report. The report can be a PDF file or an image.
For calling the API, you will need the access token

This generates a pre-signed URL for uploading the attachment to the AppZen environment.

Note the file_id field from the response. In the AppZen system, this is the Key/Name of your attachment.
You will need this field while uploading a report.

Request URI 


Header Parameters

Name Type Description Required
Authorization String The valid token to authorize the request. Yes


Path Parameters

Name Type Description Required
external_report_id String The External report id.  Yes

Sample Request

curl -L -X GET '' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJrxxxx' \
-H 'Cookie: JSESSIONID=706102609C71A1DF432013174363574B' \
--data-raw ''

Sample Response


    "Status": "Success",
    "msg": "Successfully generated URL for uploading image",
    "image_upload_url_details": {
        "url": "",
        "file_id": "b229c99f-e451-4a07-9f77-8e9ee1fb513a"
    "external_report_id": "TestAPIReport5"


The request fails if you enter an invalid token.

    "timestamp": 1672037794859,
    "status": 401,
    "error": "Unauthorized",
    "message": "Signed JWT rejected: Invalid signature",
    "path": "/reports/TestAPIReport/images/upload-url"

Response Code

Response Code Description
200 The request is successful.
500 The request failed.

See Also

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.