# Add User POST https://api.getzep.com/api/v2/users Content-Type: application/json Adds a user. Reference: https://help.getzep.com/sdk-reference/user/add ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: API version: 1.0.0 paths: /users: post: operationId: add summary: Add User description: Adds a user. tags: - subpackage_user responses: '201': description: The user that was added. content: application/json: schema: $ref: '#/components/schemas/apidata.User' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/apidata.APIError' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/apidata.APIError' requestBody: description: The user to add. content: application/json: schema: $ref: '#/components/schemas/apidata.CreateUserRequest' servers: - url: https://api.getzep.com/api/v2 components: schemas: apidata.CreateUserRequest: type: object properties: disable_default_ontology: type: boolean description: >- When true, disables the use of default/fallback ontology for the user's graph. email: type: string description: The email address of the user. first_name: type: string description: The first name of the user. last_name: type: string description: The last name of the user. metadata: type: object additionalProperties: description: Any type description: The metadata associated with the user. user_id: type: string description: The unique identifier of the user. required: - user_id title: apidata.CreateUserRequest apidata.User: type: object properties: created_at: type: string deleted_at: type: string disable_default_ontology: type: boolean email: type: string first_name: type: string id: type: integer last_name: type: string metadata: type: object additionalProperties: description: Any type description: Deprecated project_uuid: type: string session_count: type: integer description: Deprecated updated_at: type: string description: Deprecated user_id: type: string uuid: type: string title: apidata.User apidata.APIError: type: object properties: message: type: string title: apidata.APIError ``` ## SDK Code Examples ```python from zep_cloud import Zep client = Zep( api_key="YOUR_API_KEY", ) client.user.add( user_id="user_id", ) ``` ```typescript import { ZepClient } from "zep-cloud"; const client = new ZepClient({ apiKey: "YOUR_API_KEY" }); await client.user.add({ userId: "user_id" }); ``` ```go import ( context "context" option "github.com/getzep/zep-go/v3/option" v3 "github.com/getzep/zep-go/v3" v3client "github.com/getzep/zep-go/v3/client" ) client := v3client.NewClient( option.WithAPIKey( "", ), ) response, err := client.User.Add( context.TODO(), &v3.CreateUserRequest{ UserID: "user_id", }, ) ```