POST /v1/companies/{company_id}/members

Add member to company

Adds a new member to the company. Only company owners can add members. If user doesn't exist, they will be invited via phone/email.

Request

POST /v1/companies/{company_id}/members

Parameters

[ { "schema": { "type": "string" }, "required": true, "name": "company_id", "in": "path" } ]

Response

{ "201": { "description": "Member added successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "object", "properties": { "member": { "type": "object", "properties": { "id": { "type": "string" }, "user_id": { "type": [ "string", "null" ] }, "full_name": { "type": "string" }, "email": { "type": [ "string", "null" ] }, "phone": { "type": [ "string", "null" ] }, "role": { "type": "string" }, "status": { "type": "string" }, "joined_at": { "type": [ "string", "null" ] } }, "required": [ "id", "user_id", "full_name", "email", "phone", "role", "status", "joined_at" ] }, "invitation_sent": { "type": "boolean" } }, "required": [ "member", "invitation_sent" ] } }, "required": [ "success", "data" ] } } } }, "403": { "description": "Only company owners can add members" }, "409": { "description": "User is already a member of this company" } }

View in Interactive API Reference