Authentication

The Loop API uses API keys to authenticate requests. You can view, edit, and create API keys from the Developers page in the Loop Admin.

API endpoints require keys with specific scopes. Ensure you create API keys with the necessary scopes for the specific endpoints you plan to use. Refer to the documentation for each endpoint to determine the required scopes.

If the API key you are using does not have the required scope, you will receive a 401 Unauthorized response.

API Key Scope Quick Reference:

ScopeAvailable Endpoints
ReturnsProcess Return, Remove Line Items, Cancel Return, Flag Return, Close Return, Get Return Notes, Create Return Note, Detailed Returns List, Get Return Details, Advanced Shipping Notice
OrdersCreate Return Deep Link, Create Return Deep Link with QR Code, List All Blocklist Items, Get Blocklist Item, Create Blocklist Item, Delete Blocklist Item, List All Allowlist Items, Get Allowlist Item, Create Allowlist Item, Delete Allowlist Item
CartsOn-store, On-store Snippet
Developer ToolsGet, Create, Update, and Delete Webhooks