Skip to content

Register an external image reference

POST
/open/v1/media/references
curl --request POST \
--url https://api.harperharbor.com/open/v1/media/references \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com", "roleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

HarperHarbor metadata-only operation. Requires role.write and a permitted image host; does not download image bytes. Optional roleId places the reference with an agent configuration owned by the caller, allowing synchronization across application tenants. The URL is resolved only as an owned media asset when attached.

Media typeapplication/json
object
url
required
string format: uri
roleId
string format: uuid
Examplegenerated
{
"url": "https://example.com",
"roleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Created or reused an owned reference. Returns assetId and url.

Invalid request or image source.

Unauthorized.

Missing role.write scope.

Target agent configuration is missing or not owned by caller.