EYMINT
DocumentationAPI Reference
BlogDashboard
EYMINT
SectionsDocumentationAPI Reference
Go to Dashboard

For AI agents: the documentation index is at /llms.txt. Every docs page is also available as markdown by adding .md to its URL.

Overview

  • API Introduction
  • API Reference Overview
  • Authentication
  • Rate Limits
  • Error Codes

Customers

  • Create Customer
  • Get All Customers
  • Get Customer
  • Update Customer
  • Get Customer Keys
  • Toggle Status
  • Delete Customer

License Keys

  • Create Key
  • Get Key Info
  • Update Key
  • Activate Key
  • Sign Offline Key
  • Checkout Floating Session
  • Heartbeat Floating Session
  • Checkin Floating Session
  • Deactivate Key
  • Block Key
  • Unblock Key
  • Delete Key
put/customer/by-id

Update Customer

Update a customer's name and email. Send both: omitting `email` removes it. Requires an `admin` key or the `customer:write` grant; product-bound keys are refused. Emails are unique within a workspace.

If the submitted email already belongs to another customer in the same workspace, Keymint leaves the customer unchanged and returns HTTP 409 Conflict with a specific duplicate-email message.

Send name and email on every update: omitting email (or sending an empty string or null) removes the customer's email. Changing the email of a customer who holds licenses needs the license:read permission (admin keys have it); without it the request returns 403 with errorCode: "forbidden".

Authentication required: Bearer Token in Authorization header.

Parameters

Idempotency-Key
headerstring

Use a unique value to safely retry this request without repeating its effects.

Example9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

Request Body (application/json)

namerequired
string

The customer's name (required on every update). 3–255 characters after trimming; can't be a URL or contain control characters.

customerIdrequired
string

The customer to update. 22–256 characters.

email
string

The customer's email. Omitting it, or sending an empty string or null, removes the email. Must be unique within the workspace; changing the email of a customer who holds licenses needs the `license:read` permission. A valid email address, 3–320 characters.

Responses

200Customer updated (also when nothing changed)
400Invalid request. Validation errors name the field: `Field '<name>' is required.` or `Field '<name>': <problem>`, and keep the legacy `error: { code: "VALIDATION_ERROR" }` object. A body that isn't valid JSON is also `invalid_request`. An `Idempotency-Key` reused with a different method, path, query or body returns `idempotency_mismatch`. An `Idempotency-Key` longer than 255 characters, or with characters outside printable ASCII, returns `invalid_request`.
401
403The customer holds licenses and the key lacks `license:read`, which changing their email requires.
404No customer with this ID in the workspace.
409Another customer in this workspace already has this email (`conflict`, code 2). A request with the same `Idempotency-Key` is still running (`idempotency_in_progress`), or an old idempotency record can't be replayed (`idempotency_legacy`).
413
429
503

Response Body (200)

action
string
status
boolean
data
object

The customer record after the update: the same public fields as `GET /customer/by-id`.

message
string
code
integer
Request Example
curl -X PUT "https://api.keymint.dev/customer/by-id" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Jane Doe",
  "email": "jane@example.com",
  "customerId": "078116d0069c32407b4f63"
}'
Response (200 OK)
{
  "action": "updateCustomer",
  "status": true,
  "data": {
    "id": "078116d0069c32407b4f63",
    "name": "Jane Doe",
    "email": "jane@example.com",
    "active": true,
    "createdAt": "2026-09-01T18:45:38.060Z",
    "updatedAt": "2026-11-07T10:00:00.000Z"
  },
  "message": "Customer updated",
  "code": 0
}