Skip to main content
DrapierDrapier

Quick Start

Get up and running with Drapier API in 5 minutes.

Quick Start

1. Apply as a publisher

Submit your application with your website and promotion details:

curl -X POST https://api.drapier.io/api/v1/publishers/apply \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Fashion Blog",
    "email": "you@example.com",
    "website": "https://myfashionblog.com",
    "type": "CONTENT"
  }'

You will receive an email when your application is approved.

2. Get your API key

After approval, log in and generate an API key:

# Log in with email/password
curl -X POST https://api.drapier.io/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'

# Response includes your JWT
# { "accessToken": "eyJ...", "publisher": { ... } }

Use the JWT to generate an API key:

curl -X POST https://api.drapier.io/api/v1/publishers/me/api-key \
  -H "Authorization: Bearer YOUR_JWT"

# Response: { "apiKey": "in_abc123..." }

Save this key — it will not be shown again.

3. Browse products

curl https://api.drapier.io/api/v1/publishers/me/opportunities \
  -H "Authorization: Bearer YOUR_JWT"
curl -X POST https://api.drapier.io/api/v1/publishers/me/deep-link \
  -H "Authorization: Bearer YOUR_JWT" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://italist.com/products/gucci-bag"}'

5. Access your product feed

curl https://api.drapier.io/api/v1/feeds/YOUR_PUBLISHER_ID/products.xml \
  -H "Authorization: Bearer YOUR_API_KEY"

Feeds are regenerated every 4 hours with current pricing and commission rates.

6. Track your earnings

curl https://api.drapier.io/api/v1/publishers/me/dashboard \
  -H "Authorization: Bearer YOUR_JWT"

Or log in to the Publisher Dashboard for a visual overview.

On this page