{
  "opencollection": "1.0.0",
  "info": {
    "name": "Kinde Account API Keys API",
    "version": "1"
  },
  "items": [
    {
      "info": {
        "name": "API Keys",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get API keys",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v1/api_keys",
            "params": [
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of results per page. Defaults to 50 if parameter not sent."
              },
              {
                "name": "starting_after",
                "value": "",
                "type": "query",
                "description": "The ID of the API key to start after."
              },
              {
                "name": "key_type",
                "value": "",
                "type": "query",
                "description": "Filter by API key type (organization or user)."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by API key status (active, inactive, revoked)."
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "Filter by user ID to get API keys associated with a specific user."
              },
              {
                "name": "org_code",
                "value": "",
                "type": "query",
                "description": "Filter by organization code to get API keys associated with a specific organization."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Returns a list of API keys.\n\n<div>\n  <code>read:api_keys</code>\n</div>\n"
        },
        {
          "info": {
            "name": "Create API key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/api_keys",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a new API key.\n\n<div>\n  <code>create:api_keys</code>\n</div>\n"
        },
        {
          "info": {
            "name": "Get API key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v1/api_keys/:key_id",
            "params": [
              {
                "name": "key_id",
                "value": "",
                "type": "path",
                "description": "The ID of the API key."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve API key details by ID.\n\n<div>\n  <code>read:api_keys</code>\n</div>\n"
        },
        {
          "info": {
            "name": "Rotate API key",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/api/v1/api_keys/:key_id",
            "params": [
              {
                "name": "key_id",
                "value": "",
                "type": "path",
                "description": "The ID of the API key to rotate."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Rotate an API key to generate a new key while maintaining the same permissions and associations.\n\n<div>\n  <code>update:api_keys</code>\n</div>\n"
        },
        {
          "info": {
            "name": "Delete API key",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/api_keys/:key_id",
            "params": [
              {
                "name": "key_id",
                "value": "",
                "type": "path",
                "description": "The ID of the API key."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete an API key.\n\n<div>\n  <code>delete:api_keys</code>\n</div>\n"
        },
        {
          "info": {
            "name": "Verify API key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/api_keys/verify",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Verify an API key (public endpoint, no authentication required).\n"
        }
      ]
    }
  ],
  "bundled": true
}