Delete

Delete User

delete user and associated user keys

curl --location 'http://0.0.0.0:4000/user/delete' 
--header 'Authorization: Bearer sk-1234' 
--header 'Content-Type: application/json' 
--data-raw '{
    "user_ids": ["45e3e396-ee08-4a61-a88e-16b3ce7e0849"]
}'

Parameters:

  • user_ids: List[str] - The list of user id's to be deleted.
POST/user/delete
Authorization
Header parameters
Body
user_ids*User Ids
Response

Successful Response

Body
any
Request
const response = await fetch('/user/delete', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "user_ids": [
        "text"
      ]
    }),
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}