Auth
Get Api Keys
Get all API keys for the current user. Requires JWT Bearer authentication with the token received from the login endpoint.
Authorization
Authorization
RequiredBearer <token>Enter the JWT token you received from the login endpoint (without 'Bearer' prefix)
In: header
Response Body
Successful Response
TypeScript Definitions
Use the response body type in TypeScript.
response
RequiredResponse Get Api Keys Api V1 Auth Keys Getcurl -X GET "https://api.mor.org/api/v1/auth/keys" \
-H "Authorization: Bearer <token>"
fetch("https://api.mor.org/api/v1/auth/keys", {
headers: {
"Authorization": "Bearer <token>"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.mor.org/api/v1/auth/keys"
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://api.mor.org/api/v1/auth/keys"
response = requests.request("GET", url, headers = {
"Authorization": "Bearer <token>"
})
print(response.text)
[
{
"id": 0,
"key_prefix": "string",
"name": "string",
"created_at": "2019-08-24T14:15:22Z",
"is_active": true
}
]
How is this guide?