Companies
Add an email address to a company
POST
Adds an email address; with is_primary: true it becomes the primary one and the previous primary stays as a secondary. An address the company already has (any letter case) adds nothing and answers added: false, made primary when asked. A malformed address is 422 INVALID_EMAIL. Requires companies:write.
Body
application/json
addressstringrequiredEmail address
is_ primarybooleanMake it the primary address
Parameters
idstringrequiredpathCompany ID
Response
Email address added, or already there
400Bad RequestErrorResponse
Invalid id or body
401UnauthorizedErrorResponse
Invalid API key
403ForbiddenErrorResponse
Insufficient scope
404Not FoundErrorResponse
Company not found
422Unprocessable EntityErrorResponse
Invalid or duplicate email address
500Internal Server ErrorErrorResponse
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: companies:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: companies:write
apikey_ authapiKey in queryAPI key in query string
Scopes: companies:write
