curl --location --request GET 'https://api.superagent.sh/api/v1/documents/{documentId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "clhnyae1t00016i2ixo0027c5",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {},
"name": "My document"
"type": "PDF",
"url": "https://digitalassets.tesla.com/tesla-contents/image/upload/IR/TSLA-Q1-2023-Update",
"createdAt": "2023-05-14T21:50:59.349000+00:00",
"updatedAt": "2023-05-14T21:50:59.349000+00:00",
"index": null,
"Agent": null
}
}
Get a single document.
curl --location --request GET 'https://api.superagent.sh/api/v1/documents/{documentId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "clhnyae1t00016i2ixo0027c5",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {},
"name": "My document"
"type": "PDF",
"url": "https://digitalassets.tesla.com/tesla-contents/image/upload/IR/TSLA-Q1-2023-Update",
"createdAt": "2023-05-14T21:50:59.349000+00:00",
"updatedAt": "2023-05-14T21:50:59.349000+00:00",
"index": null,
"Agent": null
}
}
document
id.document
object.curl --location --request GET 'https://api.superagent.sh/api/v1/documents/{documentId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "clhnyae1t00016i2ixo0027c5",
"userId": "clhj28u1300006ig02ptpm1sh",
"user": {},
"name": "My document"
"type": "PDF",
"url": "https://digitalassets.tesla.com/tesla-contents/image/upload/IR/TSLA-Q1-2023-Update",
"createdAt": "2023-05-14T21:50:59.349000+00:00",
"updatedAt": "2023-05-14T21:50:59.349000+00:00",
"index": null,
"Agent": null
}
}