Skip to content
carton
Esc
↑↓navigate↵open⌘Jpreview

GET /v1/tokens

Planned endpoint. This operation is declared in the public contract, but the current Carton server does not expose it.

GET/v1/tokens
Authorization
AuthorizationBearer token · headerrequired
Query parameters
limitinteger
min 1 · max 1000
cursorText
min length 1 · matches ^[^\x00]+$
Responses
200

Cursor-paginated list

itemsTokenRecord[]required
Show properties
Array of TokenRecord
created_atTimestamprequired
matches Z$
expires_atTimestamp | nullrequired
Show properties
One of:
Timestamp
string<date-time>
null
null
idTokenIdrequired
matches ^tok_[0-9A-HJKMNP-TV-Z]{26}$
nameText | nullrequired
Show properties
One of:
Text
string
null
null
principalTextrequired
min length 1 · matches ^[^\x00]+$
revoked_atTimestamp | nullrequired
Show properties
One of:
Timestamp
string<date-time>
null
null
scopesTokenScope[]required
next_cursorText | nullrequired
Show properties
One of:
Text
string
null
null
400

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
401

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
403

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
422

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
429

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
500

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
503

Typed error; Retry-After is present when retryable

errorErrorBodyrequired
Show properties
codeErrorCoderequired
Allowed:unsupported_capabilityunsupported_operationinvalid_argumentnot_foundwrong_stateunauthorizedcredential_invalidcredential_expiredquota_exhaustedcapacity_exhaustedno_matching_offeringnot_preparedimage_not_foundimage_pull_failedtimeoutprovider_unavailablestream_lostinternalkvm_unavailablesandbox_goneplacement_failedpolicy_deniedambiguous_nameidempotency_conflictidempotency_in_progressidempotency_expiredunsupported_devcontainer_keycontract_version_mismatch
detailsErrorDetailsrequired
Show properties
capabilityCapabilityName
matches ^[a-z][a-z0-9_-]*(\.[a-z][a-z0-9_-]*)*@[1-9][0-9]*$ · default: null
fieldstring
default: null
outcomeOutcomeCertainty
default: null
Allowed:not_startedunknown
reasonstring
default: null
scopeErrorScope
default: null
Allowed:cartonprovider
traceErrorTraceEntry[]
default: null
Show properties
Array of ErrorTraceEntry
detailstringrequired
resultTextrequired
min length 1 · matches ^[^\x00]+$
targetTextrequired
min length 1 · matches ^[^\x00]+$
vendor_detailsobject
default: {}
violationsViolation[]
default: null
Show properties
Array of Violation
messagestringrequired
pathstringrequired
messagestringrequired
retryablebooleanrequired
Request
curl -X GET 'https://carton.example.com/v1/tokens' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "items": [
    {
      "created_at": "2019-08-24T14:15:22Z",
      "expires_at": "2019-08-24T14:15:22Z",
      "id": "string",
      "name": "string",
      "principal": "string",
      "revoked_at": "2019-08-24T14:15:22Z",
      "scopes": [
        "sandboxes:read"
      ]
    }
  ],
  "next_cursor": "string"
}