Get started
Scopes
A scope lets a key reach one group of routes. Give each key only what it needs.
You choose a key's scopes when you create it. A write scope includes its read scope, so contacts:write also lets the key read contacts. A key with ["*"] can reach every public route.
A route that needs a scope the key lacks returns 403 missing_scope and names the scope.
#Scope reference
This table is generated from the API reference, so it always matches the routes.
| Scope | Routes it allows |
|---|
analyses:write | POST /v1/analyses |
analytics:read | POST /v1/analytics/query, GET /v1/metrics |
companies:read | GET /v1/companies, POST /v1/companies/query, GET /v1/companies/{company_id}/people, GET /v1/companies/{record_id}, GET /v1/companies/{record_id}/history, GET /v1/companies/{record_id}/timeline |
companies:write | POST /v1/companies, PATCH /v1/companies/{record_id}, DELETE /v1/companies/{record_id}, POST /v1/companies/{record_id}/restore |
contacts:read | GET /v1/contacts, POST /v1/contacts/query, GET /v1/contacts/{contact_id}/sequence-enrollments, GET /v1/contacts/{record_id}, GET /v1/contacts/{record_id}/history, GET /v1/contacts/{record_id}/timeline |
contacts:read companies:read | GET /v1/lists, GET /v1/lists/{list_id}/members |
contacts:write | POST /v1/contacts, POST /v1/contacts/{contact_id}/stage, PATCH /v1/contacts/{record_id}, DELETE /v1/contacts/{record_id}, POST /v1/contacts/{record_id}/restore |
contacts:write companies:write | POST /v1/lists/{list_id}/members, DELETE /v1/lists/{list_id}/members/{record_id} |
meetings:read | GET /v1/calendar, GET /v1/meetings, POST /v1/meetings/query |
messages:read | GET /v1/texting/lines, POST /v1/threads/query, GET /v1/threads/{thread_id}/messages |
messages:write | POST /v1/threads, PATCH /v1/threads/{thread_id}, POST /v1/threads/{thread_id}/messages |
notes:read | GET /v1/notes |
notes:write | POST /v1/notes, PATCH /v1/notes/{note_id}, DELETE /v1/notes/{note_id} |
organization:read | POST /v1/members/query, GET /v1/members/{user_id}, GET /v1/organization, GET /v1/positions, GET /v1/teams |
payments:read | POST /v1/payments/query, GET /v1/payments/{payment_id} |
payments:write | POST /v1/payments, PATCH /v1/payments/{payment_id}, DELETE /v1/payments/{payment_id} |
recordings:read | GET /v1/highlights, POST /v1/recordings/query, GET /v1/recordings/{recording_id}, GET /v1/recordings/{recording_id}/analysis, GET /v1/recordings/{recording_id}/media, GET /v1/recordings/{recording_id}/transcript |
recordings:write | PATCH /v1/recordings/{recording_id}, POST /v1/recordings/{recording_id}/reanalyze, PATCH /v1/recordings/{recording_id}/transcript |
schema:read | GET /v1/call-outcomes, GET /v1/call-types, GET /v1/fields, GET /v1/picklists, GET /v1/pipelines, GET /v1/tags |
schema:write | POST /v1/call-outcomes, PUT /v1/call-outcomes/order, PATCH /v1/call-outcomes/{key}, POST /v1/call-types, PUT /v1/call-types/order, PATCH /v1/call-types/{key}, POST /v1/fields, PUT /v1/fields/order, PATCH /v1/fields/{field_id}, DELETE /v1/fields/{field_id}, POST /v1/picklists, PATCH /v1/picklists/{picklist_id}, DELETE /v1/picklists/{picklist_id}, POST /v1/pipelines, PATCH /v1/pipelines/{pipeline_id}, DELETE /v1/pipelines/{pipeline_id}, PATCH /v1/tags/{name} |
tasks:read | POST /v1/tasks/query |
tasks:write | POST /v1/tasks, POST /v1/tasks/bulk, PATCH /v1/tasks/{task_id} |
webhooks:read | GET /v1/webhook-endpoints, GET /v1/webhook-endpoints/{endpoint_id}/deliveries |
webhooks:write | POST /v1/webhook-deliveries/{delivery_id}/retry, POST /v1/webhook-endpoints, PATCH /v1/webhook-endpoints/{endpoint_id}, DELETE /v1/webhook-endpoints/{endpoint_id}, POST /v1/webhook-endpoints/{endpoint_id}/rotate-secret, POST /v1/webhook-endpoints/{endpoint_id}/test |
#Choosing scopes
| You want to | Scopes |
|---|
| Sync contacts and companies into your CRM | contacts:read, companies:read, schema:read |
| Write changes back to Valeron | contacts:write, companies:write |
| Send calls for analysis and read the results | analyses:write, recordings:read |
| Manage webhook endpoints from code | webhooks:read, webhooks:write |
Create one key per integration. If one is ever exposed, you revoke that key and nothing else stops.