Asset API Technical Reference
The Prismic Asset API allows you to manage your repository assets in media library. This documentation provides details about the available endpoints, authentication requirements, request parameters, response models, and error handling.
repository
String (required)
The repository ID (e.g. your-repo-name
).
authorization
String (required)
A user session token from the Authentication API.
origin
String
The origin URL for your request.
https://asset-api.prismic.io/assets
The JSON body of the request accepts the following properties:
assetType
String
Filter assets by type (e.g., "all"
, "image"
).
limit
Number
Maximum number of assets to be returned (e.g. 100
).
cursor
String
ID of the asset after which to start the query (e.g. "1682333764A"
).
https://asset-api.prismic.io/assets
The body must be multipart/form-data
with the asset.
https://asset-api.prismic.io/assets/{{asset-id}}
The body must be JSON. It accepts the following properties:
notes
text
Notes about the asset.
credits
text
Credit for the asset.
alt
text
Alt text for the asset.
Was this article helpful?
Can't find what you're looking for? Spot an error in the documentation? Get in touch with us on our Community Forum or using the feedback form above.