Skip to main content

Delete Api Key

DELETE 

https://cloud.agenta.ai/api/keys/:key_prefix

Delete an API key with the given key prefix for the authenticated user.

Args: key_prefix (str): The prefix of the API key to be deleted. request (Request): The incoming request object.

Returns: dict: A dictionary containing a success message upon successful deletion.

Raises: HTTPException: If the API key is not found or does not belong to the user.

Request

Path Parameters

    key_prefix Key Prefixrequired

Responses

Successful Response

Schema

    object

curl -L -X DELETE 'https://cloud.agenta.ai/api/keys/:key_prefix' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!