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.

Richiede la policy AllowAnonymous

Parametri del percorso

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

Parametri della query

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

Risposte

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

Esempi di codice

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