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). Admin and Media buyer API keys can enable the resources below (Media buyer omits cities).

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
warehousesview-any, view
shipping-companiesview-any, view
invoicesview-any, view
sourcingsview-any
citiesview-any, view (Admin only — not Media buyer)
teamsview-any, view
trackingview-any
webhooksview-any, view

Example scope strings: view-any orders, update leads, view-any stocks-histories.

Notifications

Notifications (GET /notifications) use dashboard role permissions, not API-key checkboxes. The user behind the token must have notification permissions in the back office.

Media buyer

Media buyer tokens use the same scope list as Admin except cities, and order create is omitted from mobile token abilities (REST API scopes still follow what you select when creating the key).

You can assign a subset of scopes when generating a token to create least-privilege integrations.

wedoCOD API Documentation