Customers

Customer Labels

Endpoints for attaching and detaching Labels on individual Customers. Labels themselves are managed via the Labels endpoints.

get/customers/customers/{customerId}/labels

Get a Customer's Labels

getCustomerLabels

Returns a list of the labels attached to the customer.

Path parameters

  • customerIduuidrequired

    The unique identifier of the customer this operation is scoped to. Customer IDs are stable across renames and email changes; treat them as opaque strings even though the underlying format is a UUID.

Responses

  • 200

    The customer's labels were successfully retrieved

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

post/customers/customers/{customerId}/labels

Attach Labels to a Customer

createCustomerLabels

Attaches the given existing labels to the customer. Labels already attached are ignored.

Path parameters

  • customerIduuidrequired

    The unique identifier of the customer this operation is scoped to. Customer IDs are stable across renames and email changes; treat them as opaque strings even though the underlying format is a UUID.

Request body

  • labelsstring[]required

    An array of label IDs to attach to (or detach from) the customer.

Responses

  • 200

    The customer's labels were successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/customers/customers/{customerId}/labels

Detach Labels from a Customer

deleteCustomerLabels

Detaches the given labels from the customer. Labels that are not currently attached are ignored.

Path parameters

  • customerIduuidrequired

    The unique identifier of the customer this operation is scoped to. Customer IDs are stable across renames and email changes; treat them as opaque strings even though the underlying format is a UUID.

Request body

  • labelsstring[]required

    An array of label IDs to attach to (or detach from) the customer.

Responses

  • 200

    The customer's labels were successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation