Companies
The Company object represents your Custom Trades CRM company account.
Endpoints
GET/api/v1/companies/me
The Company object
Attributes
uuidstringUnique identifier for the company
namestringCompany name
emailstringPrimary email address
phonestring |nullPrimary phone number
address_line_1string |nullFirst line of address
address_line_2string |nullSecond line of address
citystring |nullCity
statestring |nullState or province
postal_codestring |nullPostal or ZIP code
countrystring |nullCountry code
THE COMPANY OBJECT
{ "uuid": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Plumbing", "email": "contact@acme.com", "phone": "+1-555-123-4567", "address_line_1": "123 Main St", "address_line_2": "Suite 100", "city": "Seattle", "state": "WA", "postal_code": "98101", "country": "US"}List Company
Returns the company associated with the authenticated API key.
Error codes
| HTTP status code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized (invalid API key) |
| 403 | Forbidden (add-on required, IP restriction, or usage limit exceeded) |
| 404 | Company not found |
GET/api/v1/companies/me
curl -G \ https://customtradescrm.com/api/v1/companies/me \ -H "Authorization: Bearer ctc_live_..."Response
{ "success": true, "data": { "uuid": "123e4567-e89b-12d3-a456-426614174000", "name": "Acme Plumbing", "email": "contact@acme.com", "phone": "+1-555-123-4567", "address_line_1": "123 Main St", "address_line_2": "Suite 100", "city": "Seattle", "state": "WA", "postal_code": "98101", "country": "US" }}