Suggest an order code prefix for a company name
curl --request GET \ --url 'https://example.com/api/v1/clients/prefix-suggestion?name=example' \ --header 'Authorization: Bearer <token>'Returns a prefix no company of the workspace holds, built from the name: the initials of its words, then the letters its first word begins with, and a number when all of those are taken. A name after d/b/a stands in for the whole name, and legal-form words such as Inc and LLC are ignored. Nothing is reserved: POST /clients with a blank prefix takes the next free one if another company claims it first. Requires the clients.create or settings.manage permission, as POST /clients does.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The company name to suggest a prefix for.
The company name to suggest a prefix for.
Responses
Section titled “Responses”The suggested prefix.
object
object
An order code prefix (2 to 10 letters or digits, uppercase) no company of the workspace holds, built from the name. A suggestion only: creating the company with a blank prefix takes the next free one if another company claims it first.
Example generated
{ "data": { "prefix": "example" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC