Preview exact resources and sharing impact

POST/v1/packages/{packageId}/items/preview

Requires package_access_manage and sharing authority on each source. Consent binds actor, organization, package revision and source content. Maximum 200 resources per package; thread snapshots are limited to 1 MB each and 10 MB combined per package.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
packageIdpathstringYes
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
itemsobject[]Yes
items[].resourceTypemetronome_workflow | server | agent | skill | environment | prompt | knowledge_library | database | threadYes
items[].resourceIdstringYes
items[].messageIdsstring[]No

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Package operation resultapplication/json
FieldTypeRequiredDescription
revisionintegerYes
confirmationstringYes
itemsobject[]Yes
items[].idstringYesUnique identifier.
items[].resourceTypemetronome_workflow | server | agent | skill | environment | prompt | knowledge_library | database | threadYes
items[].resourceIdstringYes
items[].namestringYesHuman-readable name.
items[].descriptionstringYesHuman-readable description.
items[].kindstringYes
items[].avatarUrlstringNoThe agent's own profile image, distinct from creatorAvatarUrl. Optional; an empty value uses the client's standard fallback.
items[].creatorIdstringNo
items[].creatorNamestringNo
items[].creatorAvatarUrlstringNo
items[].createdAtstringNoISO 8601 timestamp.
items[].updatedAtstringNoISO 8601 timestamp.
items[].sourceOwnerIdstringYes
items[].approvedByUserIdstringYes
items[].sourceUpdatedAtstringYes
items[].addedAtstringYes
items[].messageIdsstring[]No
items[].snapshotobjectYes
items[].snapshot.messagesobject[]Yes
items[].snapshot.messages[].idstringYesUnique identifier.
items[].snapshot.messages[].roleuser | assistantYes
items[].snapshot.messages[].contentstringYesRaw text content.
items[].snapshot.messages[].createdAtstringYesISO 8601 timestamp.
items[].snapshot.capturedAtstringYes
noticestringYes
400Package request rejected. HTTP status distinguishes invalid input (400), authentication (401), API scope (403), unavailable resource (404), changed revision or confirmation (409), and unsupported storage (503).application/json
FieldTypeRequiredDescription
errorstringNo
codestringNo
messagestringNoMessage text.
401Package request rejected. HTTP status distinguishes invalid input (400), authentication (401), API scope (403), unavailable resource (404), changed revision or confirmation (409), and unsupported storage (503).application/json
FieldTypeRequiredDescription
errorstringNo
codestringNo
messagestringNoMessage text.
403Package request rejected. HTTP status distinguishes invalid input (400), authentication (401), API scope (403), unavailable resource (404), changed revision or confirmation (409), and unsupported storage (503).application/json
FieldTypeRequiredDescription
errorstringNo
codestringNo
messagestringNoMessage text.
404Package request rejected. HTTP status distinguishes invalid input (400), authentication (401), API scope (403), unavailable resource (404), changed revision or confirmation (409), and unsupported storage (503).application/json
FieldTypeRequiredDescription
errorstringNo
codestringNo
messagestringNoMessage text.
409Package request rejected. HTTP status distinguishes invalid input (400), authentication (401), API scope (403), unavailable resource (404), changed revision or confirmation (409), and unsupported storage (503).application/json
FieldTypeRequiredDescription
errorstringNo
codestringNo
messagestringNoMessage text.
503Package request rejected. HTTP status distinguishes invalid input (400), authentication (401), API scope (403), unavailable resource (404), changed revision or confirmation (409), and unsupported storage (503).application/json
FieldTypeRequiredDescription
errorstringNo
codestringNo
messagestringNoMessage text.
Preview exact resources and sharing impact
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow