Skip to content

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-keys

When 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:

ResourceScopes available when creating a token
leadsview-any, view, create, update, delete
ordersview-any, view, create, update, delete
leads-historiesview-any, view
orders-historiesview-any, view
productsview-any, view
stocksview-any, view
stocks-historiesview-any, view
marketplace-productsview-any, view
marketplace-stocksview-any, view
invoicesview-any, view
sourcingsview-any
citiesview-any, view
teamsview-any, view
trackingview-any
webhooksview-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.

wedoCOD API Documentation