Retrieve a customer
get_customerRetrieve a customer by Dub ID or external ID (prefix with ext_) for the authenticated workspace. Use it to fetch customer details, optionally including expanded link, partner, and discount fields.
Instructions
Retrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with ext_.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`). | |
| account | No | Exact configured private workspace profile label; not a tenant or provider account ID. | |
| include_expanded_fields | No | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |