v2/hubs/{hubId}/contents:batch-download-urls
Returns pre-signed download URLs for one or more content revisions in a single request.
Each request item identifies a content item, a revision, an optional representation, and one or more artifact types to resolve. representationId defaults to base when omitted, in which case the resolved id of the revision’s base file version is echoed back.
The response is itemized: results holds one entry per request item, carrying resolved URLs in presignedUrls (keyed by artifact type) and per-artifact failures in errors. A failure on one item or artifact type never fails the whole batch.
Status codes: - 200 - every requested item and artifact type resolved successfully. - 207 - partial success; at least one item or artifact type resolved and at least one failed. Failed results carry errors entries. - 400 - the batch itself is invalid: malformed or empty body, more than 100 items, or an item missing a required field.
Supported `type` values: CONTENT, TYPE_CATALOG, PREVIEW_IMAGE, PREVIEW_3D_GLB. PREVIEW_3D_GLB is revision-scoped, so it resolves the same artifact for every representation of a revision. DATA_MODEL_JSON is not resolvable here; request it from getRevisionDownloadUrl.
Limits: 1-100 items per request.
Resource Information
| Method and URI | POST https://api.aps.autodesk.com/content-catalog/v2/hubs/{hubId}/contents:batch-download-urls |
| Authentication Context | user context required |
| Required OAuth Scopes | data:write |
| Data Format | JSON |
Request
Headers
| Authorization* string | Must be Bearer <token>, where <token> is a three-legged access token obtained via an
Authorization Code flow
or a Secure Service Account flow.
The Secure Service Account (SSA) flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context. |
| Region string | Region identifier for API routing. Defaults to US if not provided. |
| Content-Type* string | Must be application/json |
Request
URI Parameters
| hubId string | Unique identifier for a customer hub (UUID format, uppercase) |
Request
Body Structure
| contentId* string | Unique identifier for a content item |
| revisionId* string | Unique identifier for a content revision |
| representationId string | Unique identifier for an individual representation. Defaults to base when omitted. |
| type* array: string | One or more artifact types to resolve |
Response
HTTP Status Code Summary
| 200 OK | All requested items and artifact types resolved successfully |
| 207 | Partial success; some items or artifact types resolved and some failed |
| 400 Bad Request | The server was unable to process the request. The request body is malformed, empty, contains more than 100 items, or an item is missing a required field. Do not repeat the request without fixing the issue. |
| 403 Forbidden | The request was successfully validated, but lacking the required permissions. Verify your credentials and permissions before you send the request again. |
| 500 Internal Server Error | An unexpected error occurred on the server, preventing it from completing your request. Please try again later. If the issue persists, contact the support team for assistance. |
Response
Body Structure (200)
| results array: object | Itemized batch download URL results |
| contentId string | Unique identifier for the content item |
| revisionId string | Unique identifier for the content revision |
| representationId string | Unique identifier for the representation that was resolved. For a request that omitted representationId (base download), this is the revision’s base file version id, never the base sentinel. Null when the content item or revision itself could not be resolved. |
| presignedUrls object | Pre-signed URLs keyed by artifact type. Contains entries for requested artifacts that were found, and is an empty object when none resolved. |
| * string | |
| errors array: object | Typed errors for requested artifacts that could not be resolved. Null or absent when every requested artifact for this item resolved. |
| code enum:string | Machine-readable error code for the unresolved item or artifact. INTERNAL_ERROR
means the item could not be resolved because of bad persisted data or another
internal item-level failure; other items in the batch may still resolve.
Possible values: CONTENT_NOT_FOUND, REVISION_NOT_FOUND, REPRESENTATION_NOT_FOUND, TYPE_CATALOG_NOT_FOUND, PREVIEW_IMAGE_NOT_FOUND, PREVIEW_3D_GLB_NOT_FOUND, DATA_MODEL_JSON_NOT_FOUND, CONTENT_FORBIDDEN, TYPE_CATALOG_FORBIDDEN, PREVIEW_IMAGE_FORBIDDEN, PREVIEW_3D_GLB_FORBIDDEN, DATA_MODEL_JSON_FORBIDDEN, INTERNAL_ERROR |
| message string | Human-readable description of the error |
Response
Body Structure (207)
| results array: object | Itemized batch download URL results |
| contentId string | Unique identifier for the content item |
| revisionId string | Unique identifier for the content revision |
| representationId string | Unique identifier for the representation that was resolved. For a request that omitted representationId (base download), this is the revision’s base file version id, never the base sentinel. Null when the content item or revision itself could not be resolved. |
| presignedUrls object | Pre-signed URLs keyed by artifact type. Contains entries for requested artifacts that were found, and is an empty object when none resolved. |
| * string | |
| errors array: object | Typed errors for requested artifacts that could not be resolved. Null or absent when every requested artifact for this item resolved. |
| code enum:string | Machine-readable error code for the unresolved item or artifact. INTERNAL_ERROR
means the item could not be resolved because of bad persisted data or another
internal item-level failure; other items in the batch may still resolve.
Possible values: CONTENT_NOT_FOUND, REVISION_NOT_FOUND, REPRESENTATION_NOT_FOUND, TYPE_CATALOG_NOT_FOUND, PREVIEW_IMAGE_NOT_FOUND, PREVIEW_3D_GLB_NOT_FOUND, DATA_MODEL_JSON_NOT_FOUND, CONTENT_FORBIDDEN, TYPE_CATALOG_FORBIDDEN, PREVIEW_IMAGE_FORBIDDEN, PREVIEW_3D_GLB_FORBIDDEN, DATA_MODEL_JSON_FORBIDDEN, INTERNAL_ERROR |
| message string | Human-readable description of the error |
Example
Partial success; some items or artifact types resolved and some failed
Request
curl -v 'https://developer.api.autodesk.com/content-catalog/v2/hubs/3BB2AB76-42A9-4E02-8D66-B8779A0DD0CF/contents:batch-download-urls' \
-X 'POST' \
-H 'Authorization: ' \
-H 'Content-Type: application/json' \
-d '[
{
"contentId": "550e8400-e29b-41d4-a716-446655440001",
"revisionId": "2BDC268B-55D7-4792-B846-19A155CCF777",
"representationId": "base",
"type": [
"CONTENT",
"TYPE_CATALOG",
"PREVIEW_IMAGE"
]
}
]'
Response
{
"results": [
{
"contentId": "550e8400-e29b-41d4-a716-446655440001",
"revisionId": "2BDC268B-55D7-4792-B846-19A155CCF777",
"representationId": "8F3C9A21-4B7E-4D2A-9C6F-1E5A7B0D3C88",
"presignedUrls": {
"CONTENT": "https://example-contents.s3.us-west-2.amazonaws.com/public/D05EC054-EF80-46AD-9C80-FC742F29027C/ContentModel/FF588DBC-1B17-44DD-BD2D-DD7FA5CEBE65/1/file?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=600&X-Amz-Signature=...",
"PREVIEW_IMAGE": "https://example-contents.s3.us-west-2.amazonaws.com/public/D05EC054-EF80-46AD-9C80-FC742F29027C/ContentModel/FF588DBC-1B17-44DD-BD2D-DD7FA5CEBE65/1/images/default-large.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=600&X-Amz-Signature=...",
"TYPE_CATALOG": "https://example-contents.s3.us-west-2.amazonaws.com/public/D05EC054-EF80-46AD-9C80-FC742F29027C/ContentModel/FF588DBC-1B17-44DD-BD2D-DD7FA5CEBE65/1/typeCatalogSource?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=600&X-Amz-Signature=...",
"PREVIEW_3D_GLB": "https://example-contents.s3.us-west-2.amazonaws.com/public/D05EC054-EF80-46AD-9C80-FC742F29027C/ContentModel/FF588DBC-1B17-44DD-BD2D-DD7FA5CEBE65/1/images/glb.glb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=600&X-Amz-Signature=..."
},
"errors": [
{
"code": "INTERNAL_ERROR",
"message": "No preview images found for representation BD37694A-F6A9-4A0A-91EE-BB28CE070547"
}
]
}
]
}