Page cover

Register

The Register User endpoint allows developers to onboard users by registering their email and associated API keys for multiple AI services. This is the first step in integrating the PoM Unified API into your application.


Endpoint Details

  • Method: POST

  • URL: /api/v1/user/register-user

  • Description: Registers a new user and securely stores API keys for integration with services like Gemini, OpenAI, ElevenLabs, and RunwayML.


Request Body

The request body should include the following fields in JSON format:

jsonCopy code{
  "email": "[email protected]",
  "geminiKey": "",
  "openAIKey": "",
  "elevenLabsKey": "",
  "runwayMLKey": ""
}

Field

Type

Description

Required

email

string

The user's email address

Yes

geminiKey

string

API key for the Gemini service

Yes

openAIKey

string

API key for OpenAI services

Yes

elevenLabsKey

string

API key for ElevenLabs services

Yes

runwayMLKey

string

API key for RunwayML services

Yes


Example Request

Below is an example of a POST request to the Register User endpoint:


Response

A successful registration returns the following response:

  • Important: Save the data field (Bearer Token) as it is required for authenticating future API requests.

Field

Type

Description

statusCode

number

HTTP status code

success

boolean

Indicates if the operation was successful

message

string

A descriptive message

data

string

Bearer token for authenticating API requests


Example Usage

Here’s how you can integrate the Register User endpoint into your application:


Key Notes

  • Security: Keep the Bearer Token and API keys confidential. Avoid exposing them in public repositories or client-side code.

  • Postman Testing: The endpoint has been rigorously tested in Postman to ensure reliability and performance.

  • Scalability: This endpoint is optimized to handle multiple user registrations efficiently.

This integration ensures a smooth onboarding process for users and seamless connectivity with multiple AI services. Access our repo here for more information: https://github.com/DankJeroen842/POM-API-open-v1/tree/main

Last updated