List downstream customers
GET
/api/v1/projects/{project_id}/customerscustomers:readParameters
| Field | Type | Required | Rules |
|---|---|---|---|
cursor query | string | No | |
limit query | integer | No | 1–100 |
external_id query | string | No | length 0–200 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
data | object[] | Yes | |
next_cursor | string | null | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After502Invalid stored result or inconsistent project/customer/operation binding; no private data returned503Maintenance mode or required service configuration unavailable
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers?limit=50" \
-H "Authorization: Bearer $TECHRACE_API_KEY"{
"data": [
{
"id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"external_id": "user_1234",
"name": "Acme Corp",
"created_at": "2026-11-14T10:00:00.000Z",
"deletion_requested_at": null
}
],
"next_cursor": null
}Create or retrieve by project-unique external ID
POST
/api/v1/projects/{project_id}/customerscustomers:writeRequest body
| Field | Type | Required | Rules |
|---|---|---|---|
external_id | string | Yes | length 1–200 |
name | string | Yes | length 1–160 |
Response 201
| Field | Type | Required | Rules |
|---|---|---|---|
customer | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After502Invalid stored result or inconsistent project/customer/operation binding; no private data returned503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"external_id": "user_1234",
"name": "Acme Corp"
}
EOF{
"customer": {
"id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"external_id": "user_1234",
"name": "Acme Corp",
"created_at": "2026-11-14T10:00:00.000Z",
"deletion_requested_at": null
}
}Rename a customer profile (its external ID never changes)
PATCH
/api/v1/projects/{project_id}/customers/{customer_id}customers:writeParameters
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id path | uuid | Yes |
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | Yes | length 1–160 |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
customer | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X PATCH "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers/8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"name": "Acme Corporation"
}
EOF{
"customer": {
"id": "8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10",
"external_id": "user_1234",
"name": "Acme Corporation",
"created_at": "2026-11-14T10:00:00.000Z",
"deletion_requested_at": null
}
}Freeze customer operations and request resumable bounded erasure
DELETE
/api/v1/projects/{project_id}/customers/{customer_id}customers:writeParameters
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id path | uuid | Yes |
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
confirmation | string | Yes | length 1–200 |
Response 202
| Field | Type | Required | Rules |
|---|---|---|---|
request | object | Yes | |
notice | string | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X DELETE "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers/$CUSTOMER_ID" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"confirmation": "…"
}
EOFInspect customer erasure progress; native content/grants and backups are separate
GET
/api/v1/projects/{project_id}/customer-deletions/{request_id}customers:readParameters
| Field | Type | Required | Rules |
|---|---|---|---|
request_id path | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
request | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customer-deletions/$REQUEST_ID" \
-H "Authorization: Bearer $TECHRACE_API_KEY"Resume an already authorized failed customer erasure after repair
POST
/api/v1/projects/{project_id}/customer-deletions/{request_id}/retrycustomers:writeParameters
| Field | Type | Required | Rules |
|---|---|---|---|
request_id path | uuid | Yes |
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
confirm_resume | true | Yes |
Response 202
| Field | Type | Required | Rules |
|---|---|---|---|
request | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customer-deletions/$REQUEST_ID/retry" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"confirm_resume": true
}
EOF