Auth
Delete Private Key
Delete a user's private key.
Authorization
Authorization
RequiredBearer <token>🚀 OAuth2 authentication via secure identity provider
In: header
Scope: openid, email, profile
Authorization
RequiredBearer <token>🎫 JWT Bearer token from OAuth2 login or direct token
In: header
Authorization
<token>🗝️ API key in format: 'Bearer sk-xxxxxx'
In: header
Query Parameters
args
RequiredArgskwargs
RequiredKwargsResponse Body
Successful Response
TypeScript Definitions
Use the response body type in TypeScript.
[key: string]
anyValidation Error
TypeScript Definitions
Use the response body type in TypeScript.
detail
Detailcurl -X DELETE "https://example.com/api/v1/auth/private-key?args=null&kwargs=null" \
-H "Authorization: Bearer <token>"
fetch("https://example.com/api/v1/auth/private-key?args=null&kwargs=null", {
headers: {
"Authorization": "Bearer <token>"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://example.com/api/v1/auth/private-key?args=null&kwargs=null"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://example.com/api/v1/auth/private-key?args=null&kwargs=null"
response = requests.request("DELETE", url, headers = {
"Authorization": "Bearer <token>"
})
print(response.text)
{}
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
How is this guide?