{
  "opencollection": "1.0.0",
  "info": {
    "name": "Bridge API Keys API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Api-Key",
      "value": "{{Api-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "API Keys",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a scoped API key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bridge.xyz/v0/api_keys",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new API key restricted to a subset of scopes. The returned `value` is the only\nopportunity to retrieve the plaintext secret — store it securely. This endpoint does not\naccept an `Idempotency-Key` header; each call creates a new key.\n\nCallers may only grant scopes they themselves hold (scope subsetting). Unrestricted keys\nmay create scoped keys; scoped keys need the `api_key:create` scope. Up to 500 scoped\nkeys may exist per developer.\n"
        },
        {
          "info": {
            "name": "Describe the calling API key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bridge.xyz/v0/api_keys/whoami"
          },
          "docs": "Return metadata about the API key authenticating this request, including its scopes. The plaintext secret is never returned."
        }
      ]
    }
  ],
  "bundled": true
}