- Dashboard session — you sign in at plugkit.co/dashboard with Google, GitHub, or email + password. The dashboard uses that session; you never handle a token yourself.
- API key — for your own code. A Bearer key sent on every request. Create and manage keys from the dashboard’s API Keys section.
Getting your first key
There’s no chicken-and-egg: sign in to the dashboard, open API Keys → New Key, name it (e.g. “Production server”), and copy the value. Then send it on every request:Key format
Keys aresk_ followed by 64 hex characters. They are hashed server-side —
PlugKit only ever shows the full key once, at creation. Store it in a secret
manager, never in client-side code or a git repo.
Managing keys
Create a key
Dashboard API Keys → New Key, or
POST /v1/api-keys — returns the
plaintext key one time.List keys
GET /v1/api-keys — shows prefixes and metadata, never the secret.Revoke a key
DELETE /v1/api-keys/{id} — immediately invalidates it.Rotate
Create a new key, switch your app over, then revoke the old one.
Errors
404 is intentionally returned instead of 403 when you request a resource
that belongs to another account, so keys can’t probe for existence.