All of these require a Bearer JWT or an existing API key.
POST /keys
curl -X POST https://api.portlify.ru/keys \
-H "Authorization: Bearer <jwt-or-plfy>" \
-H "Content-Type: application/json" \
-d '{"name":"laptop"}'Body name is optional, default cli. Response includes id, prefix, and the full token once.
Store the token. List and revoke only show the prefix after this.
GET /keys
curl https://api.portlify.ru/keys \ -H "Authorization: Bearer plfy_…"
DELETE /keys/:id
curl -X DELETE https://api.portlify.ru/keys/<id> \ -H "Authorization: Bearer plfy_…"
Revoked keys stop working on the next request.