Character

{
    "_id": "6157772e658244b1478cae3c",
    "firstName": "Richard",
    "lastName": "Hendricks",
    "background": "Richard Hendricks is a Stanford dropout and coder at tech company Hooli. Richard quits his job to pursue his compression application Pied Piper. The company initially starts out as a simple data compression platform, but when this, and a videochat that Dinesh created with the algorithm fails, Richard pivots toward creating a new, decentralized internet, called PiperNet. For the most part, Richard is shy and weak-willed, and does not have much of a temper, but when he finally reaches his limit, is prone to intimidating explosions of anger. Richard is constantly struggling with the demands of the business world, preferring instead to disappear into the coding of his application, but realizes that as CEO he must do more.",
    "owner": "615e1eb73b98f9cf4c3c42a8",
    "created": 1634147254447
}

Get Character

GET https://getember.ai/api/character?id=:id

This endpoint retrieves a character object using the provided ObjectID.

Query Parameters

NameTypeDescription

id

string

The ObjectID of the desired character.

{
    "_id":"6157772e658244b1478cae3c",
    "firstName":"Richard",
    "lastName":"Hendricks",
    "background":"Richard Hendricks is a Stanford dropout and coder at tech company Hooli. Richard quits his job to pursue his compression application Pied Piper. The company initially starts out as a simple data compression platform, but when this, and a videochat that Dinesh created with the algorithm fails, Richard pivots toward creating a new, decentralized internet, called PiperNet. For the most part, Richard is shy and weak-willed, and does not have much of a temper, but when he finally reaches his limit, is prone to intimidating explosions of anger. Richard is constantly struggling with the demands of the business world, preferring instead to disappear into the coding of his application, but realizes that as CEO he must do more."
}

Post Character

POST https://getember.ai/api/character

This endpoint creates a new character object with the provided properties.

Headers

NameTypeDescription

Authorization

string

A Bearer token with your provided API key.

Request Body

NameTypeDescription

firstName

string

The first name of the character to be created.

lastName

string

The last name of the character to be created.

background

string

A written background of the character to be created. This can range from a few words to a paragraph.

{
    "acknowledged": true,
    "insertedId": "61577fc9765bf80c0f1d9024"
}

Patch Character

PATCH https://getember.ai/api/character

Update a specified character object's values.

Headers

NameTypeDescription

Authorization

string

A Bearer token with your provided API key.

Request Body

NameTypeDescription

id

string

The ObjectID of the desired character.

firstName

string

The updated first name.

lastName

string

The updated last name.

background

string

The updated background.

{
    "acknowledged": true,
    "modifiedCount": 1,
    "upsertedId": null,
    "upsertedCount": 0,
    "matchedCount": 1
}

Delete Character

DELETE https://getember.ai/api/character

Delete the specified character object.

Headers

NameTypeDescription

Authorization

string

A Bearer token with your provided API key.

Request Body

NameTypeDescription

id

string

The ObjectID of the desired character.

{
    "acknowledged": true,
    "deletedCount": 1
}

Last updated