ValeronDocs

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.

ScopeRoutes it allows
analyses:writePOST /v1/analyses
analytics:readPOST /v1/analytics/query, GET /v1/metrics
companies:readGET /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:writePOST /v1/companies, PATCH /v1/companies/{record_id}, DELETE /v1/companies/{record_id}, POST /v1/companies/{record_id}/restore
contacts:readGET /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:readGET /v1/lists, GET /v1/lists/{list_id}/members
contacts:writePOST /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:writePOST /v1/lists/{list_id}/members, DELETE /v1/lists/{list_id}/members/{record_id}
meetings:readGET /v1/calendar, GET /v1/meetings, POST /v1/meetings/query
messages:readGET /v1/texting/lines, POST /v1/threads/query, GET /v1/threads/{thread_id}/messages
messages:writePOST /v1/threads, PATCH /v1/threads/{thread_id}, POST /v1/threads/{thread_id}/messages
notes:readGET /v1/notes
notes:writePOST /v1/notes, PATCH /v1/notes/{note_id}, DELETE /v1/notes/{note_id}
organization:readPOST /v1/members/query, GET /v1/members/{user_id}, GET /v1/organization, GET /v1/positions, GET /v1/teams
payments:readPOST /v1/payments/query, GET /v1/payments/{payment_id}
payments:writePOST /v1/payments, PATCH /v1/payments/{payment_id}, DELETE /v1/payments/{payment_id}
recordings:readGET /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:writePATCH /v1/recordings/{recording_id}, POST /v1/recordings/{recording_id}/reanalyze, PATCH /v1/recordings/{recording_id}/transcript
schema:readGET /v1/call-outcomes, GET /v1/call-types, GET /v1/fields, GET /v1/picklists, GET /v1/pipelines, GET /v1/tags
schema:writePOST /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:readPOST /v1/tasks/query
tasks:writePOST /v1/tasks, POST /v1/tasks/bulk, PATCH /v1/tasks/{task_id}
webhooks:readGET /v1/webhook-endpoints, GET /v1/webhook-endpoints/{endpoint_id}/deliveries
webhooks:writePOST /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 toScopes
Sync contacts and companies into your CRMcontacts:read, companies:read, schema:read
Write changes back to Valeroncontacts:write, companies:write
Send calls for analysis and read the resultsanalyses:write, recordings:read
Manage webhook endpoints from codewebhooks:read, webhooks:write

Create one key per integration. If one is ever exposed, you revoke that key and nothing else stops.