# Get API keys Retrieves a list of all API keys. Endpoint: GET /api/admin/api-keys Version: EAP Security: APIKey, AdminToken ## Query parameters: - `after` (string) The ID of the API key after which to start listing. This is used for pagination. - `limit` (integer) ## Response 200 fields (application/json): - `data` (array, required) Example: [{"id":"123e4567-e89b-12d3-a456-426614174000","created_at":"2023-10-01T12:00:00Z","masked_key_value":"key_123xxxx","scopes":["admin:api-keys:create","admin:api-keys:update"]}] - `data.[0]` (object) Example: {"id":"123e4567-e89b-12d3-a456-426614174000","created_at":"2023-10-01T12:00:00Z","masked_key_value":"key_123xxxx","scopes":["admin:api-keys:create","admin:api-keys:update"]} - `data.[0].id` (string, required) Example: "123e4567-e89b-12d3-a456-426614174000" - `data.[0].created_at` (string, required) Example: "2023-10-01T12:00:00Z" - `data.[0].expires_at` (string) - `data.[0].masked_key_value` (string, required) Example: "key_123xxxx" - `data.[0].scopes` (array, required) A list of scopes that the API key will have access to. Enum: "admin:api-keys:create", "admin:api-keys:read", "admin:api-keys:update", "admin:api-keys:delete", "pci:tokens:create", "pci:tokens:read", "pci:tokens:update", "pci:tokens:delete", "pci:tokens:forward", "network:tokens:create", "network:tokens:read", "network:tokens:delete", "network:tokens:use", "metadata:inquiry:create" - `links` (object, required) Example: {"next":"https://my-cluster-id.on-hellgate.cloud/admin/api-keys?after=123e4567-e89b-12d3-a456-426614174000&limit=20"} - `links.next` (string, required) Example: "https://my-cluster-id.on-hellgate.cloud/admin/api-keys?after=123e4567-e89b-12d3-a456-426614174000&limit=20" ## Response 401 fields (application/json): - `code` (integer) The corresponding HTTP status code for the error - `classifier` (string) Technical code that helps to identify the error - `message` (string) Human readable representation of the error ## Response 403 fields (application/json): - `code` (integer) The corresponding HTTP status code for the error - `classifier` (string) Technical code that helps to identify the error - `message` (string) Human readable representation of the error