Get Private Key Status
Check if a user has a private key registered. Does not return the actual key, only status information.
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
Schema for private key status response
TypeScript Definitions
Use the response body type in TypeScript.
has_key
RequiredHas Keycreated_at
string | null | nullupdated_at
string | null | nullValidation Error
TypeScript Definitions
Use the response body type in TypeScript.
detail
Detailcurl -X GET "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("GET", 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("GET", url, headers = {
"Authorization": "Bearer <token>"
})
print(response.text)
{
"has_key": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
How is this guide?
Get Api Keys GET
Get all API keys for the current user. Requires JWT Bearer authentication with the token received from the login endpoint.
Login POST
Log in a user and return JWT tokens. Simply provide your email and password directly in the request body: ```json { "email": "user@example.com", "password": "yourpassword" } ``` The response will contain an access_token that should be used in the Authorization header for protected endpoints, with the format: `Bearer {access_token}`