---
id: list-api-keys
title: "List Api Keys"
description: "List all API keys associated with the authenticated user."
sidebar_label: "List Api Keys"
hide_title: true
hide_table_of_contents: true
api: eJzdVMlu2zAQ/RVCpxYIbLdHnaomQRskQIMsJ9swJtTYYkKRDEmlcQX9e2coyUuK9NBjfZBFzvbmzRu1WYlBeuWisibLsysVogCtRXF9IZ5wGwSEYKWCiKX4qWIlYoUCGnqaqGS6bgL6ycIsTOE3IV8YQT+Pzw1Sqg83/cvHXNxRoDLS1spsdnb78IgypugbjI03YwIGMucHAbkkHDcYnDUBl7kohGaUdp1AXr4HMsHKTjLr0AO3d1FSgxy6AqdW3BxZ/ZA3ZHmbfZ7N+O+YkttGSgxh3WgxgqA4aU0kCtgdnNNMBblPHwPHtFmQFdbAb3HrkLKA97ClOBWxTrWcZ2BR4XDCtXo98A/RE08UEFXUfHHde3RU2iN3uoL4N//T3ksUkWM0UNvEyBgFZvtjneXzt/Hdye7GNFpn3XKf8YpyiPuwy4mvTvXMrkoq9a9pz3dpxBmn6Sj14NurI03puVEeaYDzkaojHg5R/qkZBjuax7skMFE4lQRERTuuW2OsLMtkg1zWQazoMB20QoJ6QR9Sf43XZKlidCGfTqW2TTmBDSkCJqCmJDDyP9ZRkazilF0TAQFl41Xcpnw95O8IJXq6WB463LKYep0cu+3V5RRdU0kDNZ8LWlDr1a9EK6uOAVR9FPepzNqm8IGVAdtXkE9oSgrgPnvYs8mnyey9ZoYAXsRhJ0AmfY04khuZjunaEUUWWhPFtohQf9kbGKWzIdZgDvIdD+0NqHa/lP/jd2wYdcTXOHUaaKTdwGs7CHWeJaGScipijs9t+wAB773uOr4mrJ7lRq8v4BU88PBJayejNliJlIMnRx89xzvwArrpJfbmK8cK3e3Lt/M7Gtlv2cwrNA==
sidebar_class_name: "get api-method"
info_path: reference/api/agenta-backend
custom_edit_url: null
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"List Api Keys"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/keys"}
>
  
</MethodEndpoint>



List all API keys associated with the authenticated user.

Args:
    request (Request): The incoming request object.

Returns:
    List[ListAPIKeysResponse]: A list of API Keys associated with the user.

<div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"200"}
        value={"200"}
      >
        <div>
          
          
          Successful Response
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <li>
                        <div
                          style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                        >
                          Array [
                        </div>
                      </li><SchemaItem
                        collapsible={false}
                        name={"prefix"}
                        required={true}
                        schemaName={"Prefix (string)"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","title":"Prefix"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"created_at"}
                        required={true}
                        schemaName={"Created At (string)"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","title":"Created At"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={true}
                        className={"schemaItem"}
                      >
                        <details
                          style={{}}
                          className={"openapi-markdown__details"}
                        >
                          <summary
                            style={{}}
                          >
                            <strong>
                              last_used_at
                            </strong><span
                              style={{"opacity":"0.6"}}
                            >
                               object
                            </span>
                          </summary><div
                            style={{"marginLeft":"1rem"}}
                          >
                            
                          </div><div>
                            <span
                              className={"badge badge--info"}
                            >
                              anyOf
                            </span><SchemaTabs>
                              <TabItem
                                label={"MOD1"}
                                value={"0-item-properties"}
                              >
                                <div
                                  style={{"marginTop":".5rem","marginBottom":".5rem"}}
                                >
                                  
                                  
                                  string
                                  
                                  
                                </div>
                              </TabItem>
                            </SchemaTabs>
                          </div>
                        </details>
                      </SchemaItem><SchemaItem
                        collapsible={true}
                        className={"schemaItem"}
                      >
                        <details
                          style={{}}
                          className={"openapi-markdown__details"}
                        >
                          <summary
                            style={{}}
                          >
                            <strong>
                              expiration_date
                            </strong><span
                              style={{"opacity":"0.6"}}
                            >
                               object
                            </span>
                          </summary><div
                            style={{"marginLeft":"1rem"}}
                          >
                            
                          </div><div>
                            <span
                              className={"badge badge--info"}
                            >
                              anyOf
                            </span><SchemaTabs>
                              <TabItem
                                label={"MOD1"}
                                value={"0-item-properties"}
                              >
                                <div
                                  style={{"marginTop":".5rem","marginBottom":".5rem"}}
                                >
                                  
                                  
                                  string
                                  
                                  
                                </div>
                              </TabItem>
                            </SchemaTabs>
                          </div>
                        </details>
                      </SchemaItem><li>
                        <div
                          style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                        >
                          ]
                        </div>
                      </li>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"[\n  {\n    \"prefix\": \"string\",\n    \"created_at\": \"string\",\n    \"last_used_at\": \"string\",\n    \"expiration_date\": \"string\"\n  }\n]"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      