Skip to main content

POST /api/v1/integrations/salesforce

Requires Bearer token.
Push enriched location data to Salesforce CRM. Creates or updates custom objects with scores, permits, and demographics. Request body
{
  "action": "sync",
  "object_type": "Location__c",
  "records": [
    {
      "address": "123 Market St, San Francisco, CA",
      "lat": 37.7935,
      "lng": -122.3958
    }
  ]
}
FieldTypeRequiredDefaultDescription
actionstringAction: sync, test_connection, or list_objects.
object_typestringLocation__cSalesforce custom object type.
recordsarrayArray of location records to sync (required for sync action).
Example
curl -X POST "https://axiomlocus.io/api/v1/integrations/salesforce" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer al_your_key_here" \
  -d '{"action":"test_connection"}'
Response
{
  "connected": true,
  "org_id": "00D5f000000XXXX",
  "user": "sam@axiomlocus.io",
  "available_objects": ["Location__c", "Account", "Lead"]
}
FieldTypeDescription
connectedbooleanWhether the Salesforce connection is active.
org_idstringSalesforce org identifier.

POST /api/v1/keys

Requires Bearer token.
Create and manage API keys programmatically. Keys are prefixed with al_ and can be scoped to specific endpoints. Request body
{
  "action": "create",
  "name": "Production Key",
  "scopes": ["score", "enrich", "permits"]
}
FieldTypeRequiredDefaultDescription
actionstringAction: create, list, or revoke.
namestringHuman-readable key name (required for create).
scopesarrayEndpoint scopes. Omit for full access.
key_idstringKey ID to revoke (required for revoke action).
Example
curl -X POST "https://axiomlocus.io/api/v1/keys" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer al_your_key_here" \
  -d '{"action":"create","name":"Production Key","scopes":["score","enrich"]}'
Response
{
  "key": {
    "id": "key_abc123",
    "name": "Production Key",
    "token": "al_live_abc123def456ghi789",
    "scopes": ["score", "enrich"],
    "created_at": "2026-03-31T12:00:00Z"
  }
}
FieldTypeDescription
key.idstringKey identifier for management operations.
key.tokenstringFull API key (only shown once on creation).
key.scopesarrayEndpoint scopes this key can access.