Deployments.ai Docs
Artifacts

Create a scoped artifact access URL

POST /v1/artifacts/{artifactId}/access-urls · SDK createArtifactAccessUrl · CLI deployments artifact download

POST
/v1/artifacts/{artifactId}/access-urls

Requires artifacts:read. A suspended organization can still call it while its only holds are for payment.

Authorization

headerAuthorizationBearer <token>

Opaque bearer credential scoped to one service account and tenant.

Path Parameters

artifactId*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Header Parameters

x-deployments-environment?string

Required with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
x-deployments-organization?string

Required with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
x-deployments-project?string

Required with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Request Body

application/json
  1. body
disposition?string
Value in"attachment""inline"
expiresInSeconds?integer
Range60 <= value <= 3600

Response Body

ArtifactAccessUrlResponse

application/json
  1. response
expiresAt*string
Match^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
Formatdate-time
url*string
curl -X POST "https://example.com/v1/artifacts/string/access-urls" \  -H "Content-Type: application/json" \  -d '{}'
{  "expiresAt": "2019-08-24T14:15:22Z",  "url": "string"}