curl --request POST \
--url https://api.trieve.ai/api/auth/create_api_only_user \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"user_email": "<string>",
"user_name": "<string>"
}'
{
"api_key": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"email": "developers@trieve.ai",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"orgs": [
{
"created_at": "2021-01-01 00:00:00.000",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"registerable": true,
"updated_at": "2021-01-01 00:00:00.000"
}
],
"user_orgs": [
{
"created_at": "2021-01-01 00:00:00.000",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"org_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"role": 0,
"updated_at": "2021-01-01 00:00:00.000",
"user_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
}
]
}
}
curl --request POST \
--url https://api.trieve.ai/api/auth/create_api_only_user \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"user_email": "<string>",
"user_name": "<string>"
}'
{
"api_key": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"email": "developers@trieve.ai",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"orgs": [
{
"created_at": "2021-01-01 00:00:00.000",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"registerable": true,
"updated_at": "2021-01-01 00:00:00.000"
}
],
"user_orgs": [
{
"created_at": "2021-01-01 00:00:00.000",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"org_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"role": 0,
"updated_at": "2021-01-01 00:00:00.000",
"user_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
}
]
}
}
The body is of type object
.
The user id
The response is of type object
.
Was this page helpful?