PeopleBatch upsert people
People

Batch upsert people

Create or update multiple people (max 100).

curl -X POST "https://api.flameup.ai/api/v1/workspaces/example_string/people/batch" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "people": [
    {
      "userId": "example_string",
      "email": "user@example.com",
      "traits": {
        "first_name": "John Doe",
        "last_name": "John Doe",
        "phone": "+1-555-0123",
        "avatar_url": "example_string",
        "timezone": "example_string",
        "locale": "example_string"
      }
    }
  ]
}'
{
  "people": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "workspace_id": "example_string",
      "external_id": "example_string",
      "email": "user@example.com",
      "phone": "+1-555-0123",
      "first_name": "John Doe",
      "last_name": "John Doe",
      "avatar_url": "example_string",
      "timezone": "example_string",
      "locale": "example_string",
      "status": "active",
      "attributes": {},
      "created_at": "2024-12-25T10:00:00Z",
      "updated_at": "2024-12-25T10:00:00Z",
      "first_seen_at": "2024-12-25T10:00:00Z",
      "last_seen_at": "2024-12-25T10:00:00Z"
    }
  ],
  "created_count": 10,
  "updated_count": 10
}
POST
/workspaces/{workspaceId}/people/batch
POST
Security Scheme
Bearer Token
Bearer Tokenstring
Required

Your Flameup API key (passed as Bearer token)

Your Flameup API key (passed as Bearer token)
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

BearerAuth
header
Authorizationstring
Required

Bearer token. Your Flameup API key (passed as Bearer token)

Path Parameters

Body

application/json

Responses

peoplearray
created_countinteger
updated_countinteger
Was this page helpful?
Built with Documentation.AI

Last updated today