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"
}Attorneys
Create Attorney
Creates a new attorney.
Required fields:
name- Attorney name
Optional fields:
email- Attorney email addressphoneNumber- Phone numberlawFirmId- Associated law firm payee ID (must reference an existing payee)
Required permission: company.attorney:create
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
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Body
application/json
Response
Attorney created successfully
The ID of the created attorney
Was this page helpful?
