System

Evict an API key from the in-memory cache (server-to-server)

Internal endpoint used by Phototology dashboard server actions and webhook hooks to evict revoked API keys from the Express service's LRU cache immediately, rather than waiting for the 5-minute TTL. Provide either userId (evicts all keys for that user) or keyHash (evicts one key). Auth is via x-internal-secret header.

post/v1/internal/evict

Request

  • Base URL: https://api.phototology.com
  • URL: https://api.phototology.com/v1/internal/evict
  • Auth: API key in header x-internal-secret

Request body

userIdstring

Evict all keys for this user. Provide userId OR keyHash, not both.

keyHashstring

SHA-256 hash of a single key to evict.

Example request

{
  "userId": "usr_01j9kqm7x8n2f4"
}

Response

Eviction completed.

oktrue required

Changes

No recorded changes to this operation across all 1 revision of this API.