Appearance
Authentication
All API requests must include a valid Bearer Token in the Authorization header.
Bearer Token
Authorization: Bearer {your-token}Generating a Token
API tokens are generated from the backoffice user settings page:
https://dashboard.wedocod.com/settings/api-keysWhen generating a token, you can select specific permissions (scopes) to control what the token can access.
Token Scopes
Scopes follow {action} {resource} (see App\Enums\ApiPermission\ApiPermissionElement). Seller and Team API keys can enable:
| Resource | Scopes available when creating a token |
|---|---|
leads | view-any, view, create, update, delete |
orders | view-any, view, create, update, delete |
leads-histories | view-any, view |
orders-histories | view-any, view |
products | view-any, view |
stocks | view-any, view |
stocks-histories | view-any, view |
marketplace-products | view-any, view |
marketplace-stocks | view-any, view |
invoices | view-any, view |
sourcings | view-any |
cities | view-any, view |
teams | view-any, view |
tracking | view-any |
webhooks | view-any, view |
Example scope strings: create leads, view-any marketplace-products, view-any tracking.
Notifications
Notifications (GET /notifications) use dashboard role permissions, not API-key checkboxes.
You can assign a subset of scopes when generating a token to create least-privilege integrations.
