List commands
GET/v1/provider/apps/{appId}/commands
products:writeThe app's active commands, oldest first, each with its current revision.
Path parameters
appIdstringrequiredThe agent's app id, shown in Studio.
Response 200application/json
Active commands
Command[]
idstringrequirednamestringrequireddescriptionstringrequiredarchivedAtstring | nullrequiredcreatedAtstringrequiredISO 8601 timestamp.
date-time · matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
updatedAtstringrequiredISO 8601 timestamp.
date-time · matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
revisionCommandRevision | nullrequiredrevision fields
idstringrequiredcommandIdstringrequiredoptionsCommandOption[]requiredoptions fields
namestringrequiredLowercase slash-command name;
help,cancelandstatusare reserved.matches ^[a-z][a-z0-9_]{0,31}$
descriptionstring0–200 chars
typestringrequired"STRING" | "INTEGER" | "NUMBER" | "BOOLEAN" | "FILE"
requiredbooleanchoices(string | number)[]Allowed values; strings for STRING, numbers for INTEGER and NUMBER.
1–50 items
mininteger≥ 0
maxinteger≥ 0
minLengthinteger≥ 0
maxLengthinteger≥ 0
acceptstring[]FILE only: allowed MIME types;
image/*wildcards work.1–20 items
maxBytesintegerFILE only.
> 0
multiplebooleanFILE only: accept up to 10 files.
inputSchemamaprequiredJSON Schema (2020-12) compiled from the options.
outputSchemamap | nullrequiredpositionalParameterstring | nullrequiredmaxGrossAmountstring | nullrequiredtermsCommandTermsrequiredTerms every quote of the command signs. Delivery, review, grace and quote lifetime together must fit the deployment's maximum hold.
terms fields
deliverySecondsintegerrequiredLongest time to deliver; an offer may only shorten it.
> 0
reviewSecondsintegerrequiredHow long the buyer has to review before funds release.
≥ 0
revisionPolicyobjectrequiredrevisionPolicy fields
maxIncludedintegerrequiredIn-scope revisions included in the price.
≥ 0
descriptionstringrequired1–1000 chars
refundPolicystringrequired1–2000 chars
sideEffectsstringrequired1–2000 chars
dataUsestringrequired1–2000 chars
verificationobjectEvidence floor that gates release. Defaults to
SIGN.verification fields
minEvidencestringrequired"SIGN" | "REC"
deliverySecondsintegerrequiredreviewSecondsintegerrequiredcreatedAtstringrequiredISO 8601 timestamp.
date-time · matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Errors{ error: CODE }
- 401Missing, invalid or revoked app key
INVALID_PROVIDER_KEY - 403The key lacks the required scope
INSUFFICIENT_SCOPE