curl --request GET \
--url https://api.trieve.ai/api/user/api_key \
--header 'Authorization: <api-key>'
[
{
"created_at": "2021-01-01 00:00:00.000",
"dataset_ids": [
"d0d0d0d0-d0d0-d0d0-d0d0-d0d0d0d0d0d0"
],
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"role": 1,
"updated_at": "2021-01-01 00:00:00.000"
}
]
Get the api keys which belong to the auth’ed user. The actual api key values are not returned, only the ids, names, and creation dates.
curl --request GET \
--url https://api.trieve.ai/api/user/api_key \
--header 'Authorization: <api-key>'
[
{
"created_at": "2021-01-01 00:00:00.000",
"dataset_ids": [
"d0d0d0d0-d0d0-d0d0-d0d0-d0d0d0d0d0d0"
],
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"role": 1,
"updated_at": "2021-01-01 00:00:00.000"
}
]
JSON body representing the api_key for the user
The response is of type object[]
.
Was this page helpful?