Skip to content

Check delivery options for a target

GET
/orgs/{orgId}/shares/delivery-options
curl --request GET \
--url 'https://example.com/api/v1/orgs/example/shares/delivery-options?bucketId=example&key=example' \
--header 'Authorization: Bearer <token>'

Evaluates all four delivery modes against instance config, org policies, entitlements, bucket capabilities, and target kind, returning any blockedReason per mode.

orgId
required

Organization ID.

string
bucketId
required

Bucket ID containing the target.

string
key
required

Target object key, folder prefix ending in /, or empty string for the bucket root.

string
site

Set "true" to evaluate delivery modes for a static website link.

Any of:
boolean

Availability and block reason for each delivery mode

Media typeapplication/json
object
items
required
Array<object>
object
blockedReason
required
Any of:
string
mode
required

How recipients receive bytes: gated (access-checked redirect to short-lived presigned URL, or streamed for internal buckets), proxied (streamed through Sendcrate with exact download counts and instant revocation), direct (raw presigned URL, files only, <= 7 days, immutable), or public (provider ACL/policy or bucket public base URL, permanent).

string
Allowed values: gated proxied direct public

Example

{
"items": [
{
"mode": "gated"
}
]
}

Invalid request input or rule violation.

Media typeapplication/json

Error returned when request input fails schema validation or violates a domain rule.

object
code
required
string
Allowed values: BAD_REQUEST
data
object
issues
required

Field-level validation failures, present when schema validation fails.

Array<object>
object
message
required
string
path
required

Dot-separated field path.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "BAD_REQUEST"
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Resource not found.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}