---
title: "POST /api/auth/create_api_only_user"
method: POST
path: "/api/auth/create_api_only_user"
tags: ["Auth"]
---

# POST /api/auth/create_api_only_user

`POST /api/auth/create_api_only_user`

## Request body

- CreateApiUserBody
  - `user_email` string, required
  - `user_name` string, required

## Response `200`

The user id

- CreateApiUserResponse
  - `api_key` string, required
  - `organization_id` string, uuid, required
  - `user` SlimUser, required
    - `created_at` string, date-time, required
    - `email` string, required
    - `id` string, uuid, required
    - `name` string, nullable
    - `orgs` Organization[], required
      - `created_at` string, date-time, required — Timestamp of the creation of the dataset
      - `deleted` integer, required — Flag to indicate if the organization has been deleted. Deletes are handled async after the flag is set so as to avoid expensive search index compaction.
      - `id` string, uuid, required — Unique identifier of the dataset, auto-generated uuid created by Trieve
      - `name` string, required — Name of the organization
      - `partner_configuration` unknown, required
      - `registerable` boolean, nullable — Flag to indicate whether or not new users may join the organization. Default is true.
      - `updated_at` string, date-time, required — Timestamp of the last update of the dataset
    - `user_orgs` UserOrganization[], required
      - `created_at` string, date-time, required
      - `id` string, uuid, required
      - `organization_id` string, uuid, required
      - `role` integer, required
      - `scopes` string[], nullable
      - `updated_at` string, date-time, required
      - `user_id` string, uuid, required

## Other responses

- `400` — Error message indicitating you are not currently signed in

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
