Upload audio file
const url = 'https://example.com/v1/a/audio';const form = new FormData();form.append('file', 'file');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/a/audio \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@fileStores a file for scenario bricks to play.
Rules:
- The part’s own content type is preserved, and
audio/wavis used when it carries none. - The client filename is kept as provenance.
Permission
This operation needs the permission scenario:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Names the target account for account-scoped resources.
By principal:
- A tenant API key carries no account scope of its own and names the account here.
- An account-scoped principal may omit it.
Refused when:
- A tenant API key omits it.
- An account-scoped principal sends a value naming any other account.
- The named account belongs to another tenant.
- The named account does not exist; it is answered as not found.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Created
object
Serves the file over the API. It never expires, and fetching it needs the same credentials and account scope as the rest of the API, which makes it the reference for API consumers and authoring preview.
Names the stored file: aud_
Declares the content type the file is stored and served with.
Points at the stored object by its permanent canonical storage URI (e.g. gs://
Names the storage provider holding the object (e.g. gcs); discriminates the url scheme.
Examplegenerated
{ "id": "example", "location": "example", "filename": "example", "content_type": "example", "url": "example", "provider": "example"}Bad request
object
Carries the stable lower_snake_case usecase code, such as scenario_not_found.
Carries the registered machine code, stable once assigned.
The codes:
ERRxxx: is a generic code that follows from the status class.ERR001–ERR020: are reserved for generic codes.SCN1xxand other entity-prefixed codes: appear only inside validation details.
Carries structured detail, present only where there is structure to carry it.
By failure:
- A validation failure carries the topic
validationand per-entityerrors. - A delete conflict carries the topic
conflict; its referencing dependents are inagents,automations,routings,usersorroles, depending on what holds the resource. - A scenario publish refused because of its agents carries the topic
conflict, withagents. - An agent change refused because of its automations carries the topic
conflict, withautomations. - A file none of whose rows is usable carries the topic
rows_rejected, withrowsandreasons. - Contact data past a limit of its account carries
trigger,fieldandparams. - A data field rename that cannot be applied carries
fieldand, when a contact stops it,contact. - A contact number that is refused carries
reason.
object
Names why a number or a row is refused.
Values:
number_missing: the number is missing or blank.number_no_digits: the number holds no digits.identifier_invalid: an alphanumeric identifier does not start with a letter or a digit.number_not_international: the number is written as international and is not a valid one.number_not_for_country: the number is not valid for the statedcountry_code.country_code_required: the number is not international, and nocountry_codewas stated to read it by.value_too_long: a data value is longer than the account’s value limit in bytes. Given for a row only.type_mismatch: a data value does not read as the type its field holds across the account’s contacts. Given for a row only.
Groups the validation errors by entity.
object
object
Carries the SCN1xx constructor validation code.
Lists the agents a delete or a scenario publish was rejected for, capped at the first 20; message carries the total count.
An agent a delete or a scenario publish was rejected for.
object
Lists the live automations referencing the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live automation that holds the resource a delete was rejected for.
object
Lists the live routings of agents that are not archived whose condition or scenario holds the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live routing of an agent that is not archived, which holds the resource a delete was rejected for.
object
Lists the live users holding the role a delete was rejected for, capped at the first 20; message carries the total count.
A live user that holds the role a delete was rejected for.
object
Lists the live roles inheriting the role a delete was rejected for, capped at the first 20; message carries the total count.
A live role that inherits the role a delete was rejected for.
object
Lists the rows of the refused file, a row repeating an earlier row’s number as written counted once.
How many rows of a refused file were rejected for each reason; a reason no row had is absent.
object
The number cell is blank.
The number holds no digits.
An alphanumeric identifier does not start with a letter or a digit.
The number is written as international and is not a valid one.
The number is not valid for the stated country_code.
The number is not international, and no country_code was stated to read it by.
A data cell holds a value longer than the account’s value limit in bytes.
A data cell does not read as the type its field holds across the account’s contacts.
Names the rule the contact data breaks.
Values:
array_item_not_scalar: an array item is an object, an array or null.type_mismatch: a value has another type than its field holds across the account’s contacts, or is an object where the field holds a value, or a value where it holds an object.
Names the field by its path.
By failure:
- For a broken limit, it is the field that breaks the limit.
- For too many fields, it is the first new field past the limit.
- For a rename, it is the field that stops the rename.
Names the first contact whose data stops a rename; absent when the two paths alone conflict.
Carries the details of the breach.
By breach:
- For a broken limit, it carries the numbers of the limit.
- For a type mismatch, it carries the two types.
- For an array item that is not a scalar, it is empty.
object
Reports the account’s limit.
Reports the value the data would have: the fields, the bytes or the items.
Names the type the field holds across the account’s contacts.
Names the type of the new value.
Refuses a request whose form is wrong.
Returned when:
- The body, a path parameter or a query parameter does not parse.
Content-Encodingnames a compression the API does not accept, or the body cannot be decompressed as named.- A brick to validate names a type or a version the API does not know.
- A data field path or a column name in the body is not well formed, or a key of a row’s
datais empty or holds a dot. - A node
positionin the constructor of a scenario save carries one ofxandywithout the other. - The operation needs a WebSocket upgrade, and the request is not one.
message names what failed.
The credential acts for a tenant or for the platform, and the request names no account in X-Account-Sid (or no tenant in X-Tenant-Sid).
Refuses the value of the scope header.
Returned when:
- The scope header names an account or tenant the credential does not cover.
- The scope header carries a value that is not an id of that kind.
Example
{ "data": { "reason": "number_missing", "trigger": "too_many_fields" }, "error": "bad_request"}Unauthorized
object
Carries the stable lower_snake_case usecase code, such as scenario_not_found.
Carries the registered machine code, stable once assigned.
The codes:
ERRxxx: is a generic code that follows from the status class.ERR001–ERR020: are reserved for generic codes.SCN1xxand other entity-prefixed codes: appear only inside validation details.
Carries structured detail, present only where there is structure to carry it.
By failure:
- A validation failure carries the topic
validationand per-entityerrors. - A delete conflict carries the topic
conflict; its referencing dependents are inagents,automations,routings,usersorroles, depending on what holds the resource. - A scenario publish refused because of its agents carries the topic
conflict, withagents. - An agent change refused because of its automations carries the topic
conflict, withautomations. - A file none of whose rows is usable carries the topic
rows_rejected, withrowsandreasons. - Contact data past a limit of its account carries
trigger,fieldandparams. - A data field rename that cannot be applied carries
fieldand, when a contact stops it,contact. - A contact number that is refused carries
reason.
object
Names why a number or a row is refused.
Values:
number_missing: the number is missing or blank.number_no_digits: the number holds no digits.identifier_invalid: an alphanumeric identifier does not start with a letter or a digit.number_not_international: the number is written as international and is not a valid one.number_not_for_country: the number is not valid for the statedcountry_code.country_code_required: the number is not international, and nocountry_codewas stated to read it by.value_too_long: a data value is longer than the account’s value limit in bytes. Given for a row only.type_mismatch: a data value does not read as the type its field holds across the account’s contacts. Given for a row only.
Groups the validation errors by entity.
object
object
Carries the SCN1xx constructor validation code.
Lists the agents a delete or a scenario publish was rejected for, capped at the first 20; message carries the total count.
An agent a delete or a scenario publish was rejected for.
object
Lists the live automations referencing the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live automation that holds the resource a delete was rejected for.
object
Lists the live routings of agents that are not archived whose condition or scenario holds the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live routing of an agent that is not archived, which holds the resource a delete was rejected for.
object
Lists the live users holding the role a delete was rejected for, capped at the first 20; message carries the total count.
A live user that holds the role a delete was rejected for.
object
Lists the live roles inheriting the role a delete was rejected for, capped at the first 20; message carries the total count.
A live role that inherits the role a delete was rejected for.
object
Lists the rows of the refused file, a row repeating an earlier row’s number as written counted once.
How many rows of a refused file were rejected for each reason; a reason no row had is absent.
object
The number cell is blank.
The number holds no digits.
An alphanumeric identifier does not start with a letter or a digit.
The number is written as international and is not a valid one.
The number is not valid for the stated country_code.
The number is not international, and no country_code was stated to read it by.
A data cell holds a value longer than the account’s value limit in bytes.
A data cell does not read as the type its field holds across the account’s contacts.
Names the rule the contact data breaks.
Values:
array_item_not_scalar: an array item is an object, an array or null.type_mismatch: a value has another type than its field holds across the account’s contacts, or is an object where the field holds a value, or a value where it holds an object.
Names the field by its path.
By failure:
- For a broken limit, it is the field that breaks the limit.
- For too many fields, it is the first new field past the limit.
- For a rename, it is the field that stops the rename.
Names the first contact whose data stops a rename; absent when the two paths alone conflict.
Carries the details of the breach.
By breach:
- For a broken limit, it carries the numbers of the limit.
- For a type mismatch, it carries the two types.
- For an array item that is not a scalar, it is empty.
object
Reports the account’s limit.
Reports the value the data would have: the fields, the bytes or the items.
Names the type the field holds across the account’s contacts.
Names the type of the new value.
Refuses a request that cannot be authenticated.
Returned when:
- The request carries no usable credential.
- The user, account or tenant behind the credential is not active.
Example
{ "data": { "reason": "number_missing", "trigger": "too_many_fields" }, "error": "unauthenticated"}Forbidden
object
Carries the stable lower_snake_case usecase code, such as scenario_not_found.
Carries the registered machine code, stable once assigned.
The codes:
ERRxxx: is a generic code that follows from the status class.ERR001–ERR020: are reserved for generic codes.SCN1xxand other entity-prefixed codes: appear only inside validation details.
Carries structured detail, present only where there is structure to carry it.
By failure:
- A validation failure carries the topic
validationand per-entityerrors. - A delete conflict carries the topic
conflict; its referencing dependents are inagents,automations,routings,usersorroles, depending on what holds the resource. - A scenario publish refused because of its agents carries the topic
conflict, withagents. - An agent change refused because of its automations carries the topic
conflict, withautomations. - A file none of whose rows is usable carries the topic
rows_rejected, withrowsandreasons. - Contact data past a limit of its account carries
trigger,fieldandparams. - A data field rename that cannot be applied carries
fieldand, when a contact stops it,contact. - A contact number that is refused carries
reason.
object
Names why a number or a row is refused.
Values:
number_missing: the number is missing or blank.number_no_digits: the number holds no digits.identifier_invalid: an alphanumeric identifier does not start with a letter or a digit.number_not_international: the number is written as international and is not a valid one.number_not_for_country: the number is not valid for the statedcountry_code.country_code_required: the number is not international, and nocountry_codewas stated to read it by.value_too_long: a data value is longer than the account’s value limit in bytes. Given for a row only.type_mismatch: a data value does not read as the type its field holds across the account’s contacts. Given for a row only.
Groups the validation errors by entity.
object
object
Carries the SCN1xx constructor validation code.
Lists the agents a delete or a scenario publish was rejected for, capped at the first 20; message carries the total count.
An agent a delete or a scenario publish was rejected for.
object
Lists the live automations referencing the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live automation that holds the resource a delete was rejected for.
object
Lists the live routings of agents that are not archived whose condition or scenario holds the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live routing of an agent that is not archived, which holds the resource a delete was rejected for.
object
Lists the live users holding the role a delete was rejected for, capped at the first 20; message carries the total count.
A live user that holds the role a delete was rejected for.
object
Lists the live roles inheriting the role a delete was rejected for, capped at the first 20; message carries the total count.
A live role that inherits the role a delete was rejected for.
object
Lists the rows of the refused file, a row repeating an earlier row’s number as written counted once.
How many rows of a refused file were rejected for each reason; a reason no row had is absent.
object
The number cell is blank.
The number holds no digits.
An alphanumeric identifier does not start with a letter or a digit.
The number is written as international and is not a valid one.
The number is not valid for the stated country_code.
The number is not international, and no country_code was stated to read it by.
A data cell holds a value longer than the account’s value limit in bytes.
A data cell does not read as the type its field holds across the account’s contacts.
Names the rule the contact data breaks.
Values:
array_item_not_scalar: an array item is an object, an array or null.type_mismatch: a value has another type than its field holds across the account’s contacts, or is an object where the field holds a value, or a value where it holds an object.
Names the field by its path.
By failure:
- For a broken limit, it is the field that breaks the limit.
- For too many fields, it is the first new field past the limit.
- For a rename, it is the field that stops the rename.
Names the first contact whose data stops a rename; absent when the two paths alone conflict.
Carries the details of the breach.
By breach:
- For a broken limit, it carries the numbers of the limit.
- For a type mismatch, it carries the two types.
- For an array item that is not a scalar, it is empty.
object
Reports the account’s limit.
Reports the value the data would have: the fields, the bytes or the items.
Names the type the field holds across the account’s contacts.
Names the type of the new value.
The credential is valid and in scope, but the caller’s roles do not grant the permission the operation needs.
Example
{ "data": { "reason": "number_missing", "trigger": "too_many_fields" }, "error": "permission_denied"}Not found
object
Carries the stable lower_snake_case usecase code, such as scenario_not_found.
Carries the registered machine code, stable once assigned.
The codes:
ERRxxx: is a generic code that follows from the status class.ERR001–ERR020: are reserved for generic codes.SCN1xxand other entity-prefixed codes: appear only inside validation details.
Carries structured detail, present only where there is structure to carry it.
By failure:
- A validation failure carries the topic
validationand per-entityerrors. - A delete conflict carries the topic
conflict; its referencing dependents are inagents,automations,routings,usersorroles, depending on what holds the resource. - A scenario publish refused because of its agents carries the topic
conflict, withagents. - An agent change refused because of its automations carries the topic
conflict, withautomations. - A file none of whose rows is usable carries the topic
rows_rejected, withrowsandreasons. - Contact data past a limit of its account carries
trigger,fieldandparams. - A data field rename that cannot be applied carries
fieldand, when a contact stops it,contact. - A contact number that is refused carries
reason.
object
Names why a number or a row is refused.
Values:
number_missing: the number is missing or blank.number_no_digits: the number holds no digits.identifier_invalid: an alphanumeric identifier does not start with a letter or a digit.number_not_international: the number is written as international and is not a valid one.number_not_for_country: the number is not valid for the statedcountry_code.country_code_required: the number is not international, and nocountry_codewas stated to read it by.value_too_long: a data value is longer than the account’s value limit in bytes. Given for a row only.type_mismatch: a data value does not read as the type its field holds across the account’s contacts. Given for a row only.
Groups the validation errors by entity.
object
object
Carries the SCN1xx constructor validation code.
Lists the agents a delete or a scenario publish was rejected for, capped at the first 20; message carries the total count.
An agent a delete or a scenario publish was rejected for.
object
Lists the live automations referencing the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live automation that holds the resource a delete was rejected for.
object
Lists the live routings of agents that are not archived whose condition or scenario holds the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live routing of an agent that is not archived, which holds the resource a delete was rejected for.
object
Lists the live users holding the role a delete was rejected for, capped at the first 20; message carries the total count.
A live user that holds the role a delete was rejected for.
object
Lists the live roles inheriting the role a delete was rejected for, capped at the first 20; message carries the total count.
A live role that inherits the role a delete was rejected for.
object
Lists the rows of the refused file, a row repeating an earlier row’s number as written counted once.
How many rows of a refused file were rejected for each reason; a reason no row had is absent.
object
The number cell is blank.
The number holds no digits.
An alphanumeric identifier does not start with a letter or a digit.
The number is written as international and is not a valid one.
The number is not valid for the stated country_code.
The number is not international, and no country_code was stated to read it by.
A data cell holds a value longer than the account’s value limit in bytes.
A data cell does not read as the type its field holds across the account’s contacts.
Names the rule the contact data breaks.
Values:
array_item_not_scalar: an array item is an object, an array or null.type_mismatch: a value has another type than its field holds across the account’s contacts, or is an object where the field holds a value, or a value where it holds an object.
Names the field by its path.
By failure:
- For a broken limit, it is the field that breaks the limit.
- For too many fields, it is the first new field past the limit.
- For a rename, it is the field that stops the rename.
Names the first contact whose data stops a rename; absent when the two paths alone conflict.
Carries the details of the breach.
By breach:
- For a broken limit, it carries the numbers of the limit.
- For a type mismatch, it carries the two types.
- For an array item that is not a scalar, it is empty.
object
Reports the account’s limit.
Reports the value the data would have: the fields, the bytes or the items.
Names the type the field holds across the account’s contacts.
Names the type of the new value.
Refuses an identifier that names no resource the caller can use.
Returned when:
- No live resource with this identifier is visible to the caller.
- The resource the identifier names belongs to another account.
Example
{ "data": { "reason": "number_missing", "trigger": "too_many_fields" }, "error": "not_found"}Request body exceeds the 32 MiB upload limit
object
Carries the stable lower_snake_case usecase code, such as scenario_not_found.
Carries the registered machine code, stable once assigned.
The codes:
ERRxxx: is a generic code that follows from the status class.ERR001–ERR020: are reserved for generic codes.SCN1xxand other entity-prefixed codes: appear only inside validation details.
Carries structured detail, present only where there is structure to carry it.
By failure:
- A validation failure carries the topic
validationand per-entityerrors. - A delete conflict carries the topic
conflict; its referencing dependents are inagents,automations,routings,usersorroles, depending on what holds the resource. - A scenario publish refused because of its agents carries the topic
conflict, withagents. - An agent change refused because of its automations carries the topic
conflict, withautomations. - A file none of whose rows is usable carries the topic
rows_rejected, withrowsandreasons. - Contact data past a limit of its account carries
trigger,fieldandparams. - A data field rename that cannot be applied carries
fieldand, when a contact stops it,contact. - A contact number that is refused carries
reason.
object
Names why a number or a row is refused.
Values:
number_missing: the number is missing or blank.number_no_digits: the number holds no digits.identifier_invalid: an alphanumeric identifier does not start with a letter or a digit.number_not_international: the number is written as international and is not a valid one.number_not_for_country: the number is not valid for the statedcountry_code.country_code_required: the number is not international, and nocountry_codewas stated to read it by.value_too_long: a data value is longer than the account’s value limit in bytes. Given for a row only.type_mismatch: a data value does not read as the type its field holds across the account’s contacts. Given for a row only.
Groups the validation errors by entity.
object
object
Carries the SCN1xx constructor validation code.
Lists the agents a delete or a scenario publish was rejected for, capped at the first 20; message carries the total count.
An agent a delete or a scenario publish was rejected for.
object
Lists the live automations referencing the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live automation that holds the resource a delete was rejected for.
object
Lists the live routings of agents that are not archived whose condition or scenario holds the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live routing of an agent that is not archived, which holds the resource a delete was rejected for.
object
Lists the live users holding the role a delete was rejected for, capped at the first 20; message carries the total count.
A live user that holds the role a delete was rejected for.
object
Lists the live roles inheriting the role a delete was rejected for, capped at the first 20; message carries the total count.
A live role that inherits the role a delete was rejected for.
object
Lists the rows of the refused file, a row repeating an earlier row’s number as written counted once.
How many rows of a refused file were rejected for each reason; a reason no row had is absent.
object
The number cell is blank.
The number holds no digits.
An alphanumeric identifier does not start with a letter or a digit.
The number is written as international and is not a valid one.
The number is not valid for the stated country_code.
The number is not international, and no country_code was stated to read it by.
A data cell holds a value longer than the account’s value limit in bytes.
A data cell does not read as the type its field holds across the account’s contacts.
Names the rule the contact data breaks.
Values:
array_item_not_scalar: an array item is an object, an array or null.type_mismatch: a value has another type than its field holds across the account’s contacts, or is an object where the field holds a value, or a value where it holds an object.
Names the field by its path.
By failure:
- For a broken limit, it is the field that breaks the limit.
- For too many fields, it is the first new field past the limit.
- For a rename, it is the field that stops the rename.
Names the first contact whose data stops a rename; absent when the two paths alone conflict.
Carries the details of the breach.
By breach:
- For a broken limit, it carries the numbers of the limit.
- For a type mismatch, it carries the two types.
- For an array item that is not a scalar, it is empty.
object
Reports the account’s limit.
Reports the value the data would have: the fields, the bytes or the items.
Names the type the field holds across the account’s contacts.
Names the type of the new value.
The body exceeds the size limit of the operation.
Example
{ "data": { "reason": "number_missing", "trigger": "too_many_fields" }, "error": "payload_too_large"}Internal server error
object
Carries the stable lower_snake_case usecase code, such as scenario_not_found.
Carries the registered machine code, stable once assigned.
The codes:
ERRxxx: is a generic code that follows from the status class.ERR001–ERR020: are reserved for generic codes.SCN1xxand other entity-prefixed codes: appear only inside validation details.
Carries structured detail, present only where there is structure to carry it.
By failure:
- A validation failure carries the topic
validationand per-entityerrors. - A delete conflict carries the topic
conflict; its referencing dependents are inagents,automations,routings,usersorroles, depending on what holds the resource. - A scenario publish refused because of its agents carries the topic
conflict, withagents. - An agent change refused because of its automations carries the topic
conflict, withautomations. - A file none of whose rows is usable carries the topic
rows_rejected, withrowsandreasons. - Contact data past a limit of its account carries
trigger,fieldandparams. - A data field rename that cannot be applied carries
fieldand, when a contact stops it,contact. - A contact number that is refused carries
reason.
object
Names why a number or a row is refused.
Values:
number_missing: the number is missing or blank.number_no_digits: the number holds no digits.identifier_invalid: an alphanumeric identifier does not start with a letter or a digit.number_not_international: the number is written as international and is not a valid one.number_not_for_country: the number is not valid for the statedcountry_code.country_code_required: the number is not international, and nocountry_codewas stated to read it by.value_too_long: a data value is longer than the account’s value limit in bytes. Given for a row only.type_mismatch: a data value does not read as the type its field holds across the account’s contacts. Given for a row only.
Groups the validation errors by entity.
object
object
Carries the SCN1xx constructor validation code.
Lists the agents a delete or a scenario publish was rejected for, capped at the first 20; message carries the total count.
An agent a delete or a scenario publish was rejected for.
object
Lists the live automations referencing the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live automation that holds the resource a delete was rejected for.
object
Lists the live routings of agents that are not archived whose condition or scenario holds the resource a delete was rejected for, capped at the first 20; message carries the total count.
A live routing of an agent that is not archived, which holds the resource a delete was rejected for.
object
Lists the live users holding the role a delete was rejected for, capped at the first 20; message carries the total count.
A live user that holds the role a delete was rejected for.
object
Lists the live roles inheriting the role a delete was rejected for, capped at the first 20; message carries the total count.
A live role that inherits the role a delete was rejected for.
object
Lists the rows of the refused file, a row repeating an earlier row’s number as written counted once.
How many rows of a refused file were rejected for each reason; a reason no row had is absent.
object
The number cell is blank.
The number holds no digits.
An alphanumeric identifier does not start with a letter or a digit.
The number is written as international and is not a valid one.
The number is not valid for the stated country_code.
The number is not international, and no country_code was stated to read it by.
A data cell holds a value longer than the account’s value limit in bytes.
A data cell does not read as the type its field holds across the account’s contacts.
Names the rule the contact data breaks.
Values:
array_item_not_scalar: an array item is an object, an array or null.type_mismatch: a value has another type than its field holds across the account’s contacts, or is an object where the field holds a value, or a value where it holds an object.
Names the field by its path.
By failure:
- For a broken limit, it is the field that breaks the limit.
- For too many fields, it is the first new field past the limit.
- For a rename, it is the field that stops the rename.
Names the first contact whose data stops a rename; absent when the two paths alone conflict.
Carries the details of the breach.
By breach:
- For a broken limit, it carries the numbers of the limit.
- For a type mismatch, it carries the two types.
- For an array item that is not a scalar, it is empty.
object
Reports the account’s limit.
Reports the value the data would have: the fields, the bytes or the items.
Names the type the field holds across the account’s contacts.
Names the type of the new value.
Example
{ "data": { "reason": "number_missing", "trigger": "too_many_fields" }}Error codes
| Status | Error | Meaning |
|---|---|---|
| 400 | bad_request | Refuses a request whose form is wrong.
Returned when:
- The body, a path parameter or a query parameter does not parse.
- Content-Encoding names a compression the API does not accept, or the body cannot be decompressed as named.
- A brick to validate names a type or a version the API does not know.
- A data field path or a column name in the body is not well formed, or a key of a row's data is empty or holds a dot.
- A node position in the constructor of a scenario save carries one of x and y without the other.
- The operation needs a WebSocket upgrade, and the request is not one.
message names what failed. |
| 400 | missing_scope_header | The credential acts for a tenant or for the platform, and the request names no account in X-Account-Sid (or no tenant in X-Tenant-Sid). |
| 400 | scope_conflict | Refuses the value of the scope header. Returned when: - The scope header names an account or tenant the credential does not cover. - The scope header carries a value that is not an id of that kind. |
| 401 | unauthenticated | Refuses a request that cannot be authenticated. Returned when: - The request carries no usable credential. - The user, account or tenant behind the credential is not active. |
| 403 | permission_denied | The credential is valid and in scope, but the caller's roles do not grant the permission the operation needs. |
| 404 | not_found | Refuses an identifier that names no resource the caller can use. Returned when: - No live resource with this identifier is visible to the caller. - The resource the identifier names belongs to another account. |
| 413 | payload_too_large | The body exceeds the size limit of the operation. |