Update tags for an uploaded PDF

You can pass tags in our upload endpoint, but if you forgot to do so, you can use this endpoint to add/update/remove tags for a document using its docId. This endpoint will not consume any API credits from your plan.

Whatever tags you want to have for the document, include all of them in the array which is going to replace the list of tags associated with the document

Document tags

POST https://pdf.ai/api/v1/tags

To update the tags of a document using its docId

Headers

Name
Type
Description

X-API-Key*

string

<API-Key>

Request Body

Name
Type
Description

docId*

string

Document ID obtained after uploading PDF

tags*

array

Tags you want to have for the document e.g., ["Tag1", "Tag2"] To remove the tags use empty array e.g., []

{
    "message": "Successfully updated tags!"
}

Last updated

Was this helpful?