Partner Account

Endpoints for retrieving partner details, updating branding, and fetching script configuration.

Get Partner Details

Retrieve the current partner account information.

Request:

GET /partner/me

Response:

{
  "partner": {
    "id": "uuid",
    "name": "Partner Name",
    "slug": "partner-slug",
    "status": "active",
    "companyName": "Company Inc",
    "supportEmail": "[email protected]",
    "logoUrl": "https://example.com/logo.png",
    "primaryColor": "#0066cc",
    "secondaryColor": "#333333",
    "scriptDomain": "track.example.com",
    "scriptDomainVerified": true,
    "billingMode": "pooled",
    "creditPoolTotal": 10000,
    "creditPoolUsed": 2500,
    "creditPoolAvailable": 7500,
    "maxOrganizations": 100,
    "maxIdentificationsPerOrg": 5000,
    "identificationWebhookUrl": "https://example.com/webhooks/identify",
    "identificationWebhookEnabled": true,
    "billingWebhookUrl": "https://example.com/webhooks/billing",
    "billingWebhookEnabled": true,
    "createdAt": "2025-01-01T00:00:00Z",
    "isOwner": true
  }
}

Example:


Update Branding

Update partner branding settings (logo, colors, company name).

Request:

Body:

All fields are optional. Only include fields you want to update.

Response:

Example:


Get Script Configuration

Retrieve the configuration needed for embedding the partner tracking script.

Request:

Response:

Example:

Last updated