What are scopes in API tokens?
Scopes are permissions that control what an API token can do in ZEPIC. The token authenticates the request; its scopes determine which operations the integration is allowed to perform. For example, a token with only Object Schema View can read object definitions, but it can’t read or update Contact records.
Table of Contents
Scope Examples
| Scope | What it allows | Example API operation |
|---|---|---|
| Object Schema View | Read object schemas and field definitions, not the records themselves. | Retrieve all schemas |
| Record View | Read records in an object, without creating or updating them. | Retrieve all records |
| Record Create & Update | Create or modify object records. Add Record View separately if the integration also calls a record-read operation. | Create Record |
| Segment View | Read segments and retrieve records in a segment through the segment API. | Retrieve all segments |
| Custom Event Create | Create a custom event for a record through the public API. | Create Events With Record ID |
Choose Scopes for Your Integration
- List what the integration actually does: for example, read field definitions, fetch records, or update them.
- Open each operation in the ZEPIC API reference and check its Scope Required label.
- Grant only the scopes those operations require. For example, if a reporting job reads Contact records and also reads the schema to map fields, grant Record View and Object Schema View. It doesn’t need Record Create & Update.
Tip: Use a separate token for each integration and environment. You can then change one integration’s access without changing the others.
Add or Update Scopes
You need permission to manage API tokens in your ZEPIC account.
- Go to Settings → API Tokens. Select Create token for a new token, or open an existing token for editing.
- Select + Add new scopes, choose the permissions you need, and select Apply. To remove a scope from an existing token, use the remove control beside it under Selected scopes.
- Review the selected scopes, then select Create token or Save and confirm with Proceed.
Changes take effect immediately. Before removing a scope from a token in use, check which requests rely on it. After saving, test the integration’s required operations.
Troubleshooting
- 403 Forbidden: Compare the operation’s required scope with the scopes on the token your integration is actually using. If the scope is already present, ask your administrator to check whether your account can access that API.
- 401 Unauthorized: Check that the token is active and unexpired, and that it’s sent in the Bearer authorization header. Adding a scope won’t fix an authentication problem.
Explore Related Resources
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article