Skip to content

How a customer's upload's cut-out stands

GET
/v1/assets/{id}/cut-out
curl --request GET \
--url https://api.pixonaut.app/v1/assets/example/cut-out \
--header 'Authorization: Bearer <token>'

Operation ID: assets.cutOutStatus

How the cut-out asked of this upload (POST /v1/assets/{id}/cut-out) stands: running, done with the cut-out to put in the upload’s place, or failed, and whether it may be asked again.

id
required
string
x-pixonaut-session

The designer’s browser session, which the SDK sends so one visitor’s uploads and proofs are told apart from another’s on the same key: 6 to 64 letters, digits, _ or -. Any other value is ignored.

string

The designer’s browser session, which the SDK sends so one visitor’s uploads and proofs are told apart from another’s on the same key: 6 to 64 letters, digits, _ or -. Any other value is ignored.

How the cut-out stands

Media typeapplication/json
object
attempts
required

How often the cut-out was asked, at most 2: a cut-out that failed may be asked once more.

integer
cutOut
required

The cut-out, once done: a new upload for the same picture, to put in the upload’s place. Null while it runs, after it failed, or once it is no longer kept.

object
assetId
required
string
contentKey
required
string
heightPx
required
number
widthPx
required
number
retryable
required

Failed, and it may be asked again. Once false on a failed cut-out, the customer goes on with the upload as it was.

boolean
status
required

running while it is being cut out; done once the cut-out is kept; failed when it could not be cut out, which charged nothing.

string

Examples

Exampleexample

Example

{
"attempts": 1,
"cutOut": null,
"retryable": true,
"status": "failed"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: not_found

Media typeapplication/json
object
error
required
string

Examples

Examplenot_found

not_found

{
"error": "not_found"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: rate_limited

Media typeapplication/json
object
error
required
string

Examples

Examplerate_limited

rate_limited

{
"error": "rate_limited"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors