QuQi API Konsole öffnen
ESC
Konsole öffnen QuQi nutzen
API
Getting started
The QuQi API Authentication
Your account
GET List your websites POST Issue a narrowed key
Channels
GET List channels GET One channel
Posts
POST Plan a post GET List posts GET One post POST Publish a post
Articles
POST Plan an article GET List written articles GET One written article
The calendar
GET The calendar
Pictures
POST Make a picture GET The picture library GET Check a task
Webhooks
POST Add a webhook GET List webhooks DELETE Remove a webhook
Reading finished work
GET Status GET Keywords GET List articles GET One article POST Connect a site POST Disconnect a site
Getting started
Errors
Docs / API / Issue a narrowed key

Issue a narrowed key

Trade your key for one limited to a single website — what an installed app holds.

2 Min. Lesezeit All plans
POST /api/v1/me/keys

This is the flow behind "which website is this site?" in the WordPress plugin and the Shopify app. They list your websites, you pick one, and the app trades your key for one that reaches that website alone.

website_id string ERFORDERLICH
The website the new key should be limited to.
name string OPTIONAL
What will hold it, so you recognise it in the key list.
HIER STARTEN Your own key is untouched — this issues a narrower one beside it. The narrow key is what a site keeps, so if that site is ever compromised it reaches one website and no others.

You need to be an admin or owner of the website. A narrowed key needs no website_id on later requests: it has already named one.

VORSICHT The new secret is in this reply and nowhere else. It is never shown again.
CURL
curl -X POST https://console.quqi.io/api/v1/me/keys \
  -H "Authorization: Bearer quqi_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "website_id": "019feda8-0ca6-70d1-b927-697fa6650cda",
    "name": "Our WordPress site"
  }'
RESPONSE 201
{
  "success": true,
  "data": {
    "api_key": "quqi_…",
    "key_id": "01a0…",
    "website": {
      "name": "Corner Bakery",
      "domain": "cornerbakery.example"
    }
  }
}
Hat diese Seite Ihre Frage beantwortet? Ja Nicht ganz