API reference

Shared Access

API referencehttps://api.contit.cloud

Shared Access

Endpoints for anonymous/shared access to assets using a shared access key.

GET /shared-access/{workspaceId}/asset/{id}

Download asset anonymously

Download an asset file without authentication using a shared access key. The key must be provided as a query parameter.

Requires the AllowAnonymous policy

Path parameters

NameTypeRequiredDescription
workspaceIdstringThe workspace ID that owns the asset
idstringThe asset ID (GUID)

Query parameters

NameTypeRequiredDescription
sharedAccessKeystringThe shared access key that grants anonymous access to this asset

Responses

200Success — binary file data
(binary)binaryRaw file bytes
403Forbidden — invalid or expired shared access key
404Not Found

Code examples

curl -X GET "https://api.contit.cloud/shared-access/{workspaceId}/asset/{id}" \
  -H "X-Api-Key: YOUR_API_KEY"
Example request
GET /shared-access/ws-a1b2c3d4/asset/c3d4e5f6-a7b8-9012-cdef-123456789012?sharedAccessKey=sk_live_abc123def456ghi789jkl012
Example response 200
(binary file data — Content-Type varies by asset)
Try it Live