Create profile
Creates a new profile with a name, optional description, and color. Names are unique per team: a duplicate returns a 409 whose details.existingProfileId carries the id of the existing profile. Send an Idempotency-Key header to make retries safe: a retried create with the same key and body replays the original 201 (same _id) instead of conflicting.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Header Parameters
Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
{ "message": "Profile created successfully", "profile": { "_id": "64f0a1b2c3d4e5f6a7b8c9d0", "userId": "6507a1b2c3d4e5f6a7b8c9d0", "name": "Marketing Team", "description": "Profile for marketing campaigns", "color": "#4CAF50", "isDefault": false, "createdAt": "2024-11-01T10:00:00Z" }}List profiles
Returns profiles sorted default-first, then by creation date. Filter with name (exact match) and paginate with limit/skip; without those params the full list is returned unchanged. Use includeOverLimit=true to include profiles that exceed the plan limit.
Get profile
Returns a single profile by ID, including its name, color, and default status.