POST
/
api
/
auth
/
create_api_only_user
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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Body

application/json

The body is of type object.

Response

200
application/json

The user id

The response is of type object.