curl -X POST "https://<your-api-host>/api/register-protocol" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "awesome-dex",
    "name": "Awesome DEX",
    "logo": "https://example.com/logo.png",
    "chains": ["ethereum", "polygon"]
  }'
Authorization
string
required
Bearer token from the Snippet mobile app. Format: Bearer YOUR_API_KEY.
id
string
required
Unique protocol identifier (slug). Lowercase; invalid characters are sanitized.
name
string
required
Human-readable protocol name shown in the app.
Public URL to a square logo image.
chains
array[string]
Optional list of supported chains, e.g. ["ethereum", "polygon"].
curl -X POST "https://<your-api-host>/api/register-protocol" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "awesome-dex",
    "name": "Awesome DEX",
    "logo": "https://example.com/logo.png",
    "chains": ["ethereum", "polygon"]
  }'
On success, the response includes the created protocol object.
id must be unique across all protocols.