Profiles
Create a profile
Creates a profile. This endpoint requires a read-write API key with access to all profiles.
Authorization
bearerAuth AuthorizationBearer <token>
PostZen API key.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/profiles" \ -H "Content-Type: application/json" \ -d '{ "name": "Marketing Team", "description": "Profile for marketing campaigns", "color": "#4caf50" }'{ "message": "Profile created successfully", "profile": { "_id": "jh72r5nqk9wx3v8m1t4cz6bs0fy5dg3e", "userId": "jd7cm2xw9krt4v1n8q6zs0b3hf5yg2pa", "name": "Marketing Team", "description": "Profile for marketing campaigns", "color": "#4caf50", "isDefault": false, "createdAt": "2026-06-13T16:00:00.000Z" }}{ "error": "JSON body is required"}{ "error": "Unauthorized"}{ "error": "API key requires read_write permission"}{ "error": "Failed to create post"}