Skip to main content
POST
/
api
/
external
/
companies
/
{companyId}
/
attorneys
curl --request POST \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/attorneys \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Jane Smith"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440003"
}

Authorizations

Authorization
string
header
required

API key authentication. Include your key in the Authorization header: Authorization: ApiKey YOUR-API-KEY

Path Parameters

companyId
string<uuid>
required

Company identifier

Body

application/json
name
string
required

Attorney name

email
string<email>

Attorney email address

phoneNumber
string

Attorney phone number

lawFirmId
string<uuid>

ID of an existing payee (law firm) to associate with this attorney. Use GET /payees to find valid IDs, or POST /payees to create one first.

Response

Attorney created successfully

id
string<uuid>

The ID of the created attorney