Create Member

Add a new member to a directory via API.

Programmatically add members to your directory.

Endpoint

POST /api/v1/members

Request body

{
  "directory_id": "dir_abc123",
  "email": "member@example.com",
  "name": "Jane Doe",
  "phone": "555-5678",
  "company": "Doe Plumbing",
  "categories": ["plumbing", "drain-cleaning"],
  "locations": ["Los Angeles", "Santa Monica"],
  "send_invitation": true
}

Response

{
  "id": "mem_xyz789",
  "email": "member@example.com",
  "status": "invited",
  "created_at": "2024-01-15T10:30:00Z"
}