Datastore
🌐 API endpoint
https://api.exoapi.dev/datastore
📃 Description
Easily store and retrieve key/value data configurations
️ Request example
// npm install @flower-digital/exoapi-sdk
import { ExoAPI } from "@flower-digital/exoapi-sdk";

const exoapi = new ExoAPI({ apiKey: YOUR_API_KEY });

async function datastore() {
  try {
    const res = await exoapi.datastore({
      key: "config.keywords",
      data: ["example", "of", "data"],
    });
    console.log(res);
  } catch (err) {
    console.error(err);
  }
}

datastore();
️ Request parameters
NameTypeExampleDescription
key
required
string
config.keywords
Unique identifier of the datastore entry. Should be less than 255 characters.
data
object string array number integer boolean null
[ "example", "of", "data" ]
JSON data to store for the given key. Use the value `null` to erase the data. If this parameter is omitted, the request will return the currently stored data for the key.
️ Response example
{
  "key": "config.keywords",
  "data": [
    "example",
    "of",
    "data"
  ],
  "createdAt": "2025-10-30T19:03:47.809Z",
  "updatedAt": "2025-10-30T19:03:47.809Z"
}
️ Response data
NameTypeExampleDescription
key
string
config.keywords
Unique identifier of the datastore entry
data
object array string number integer boolean null
[ "example", "of", "data" ]
Data currently stored for the given key, or `null` if no data is present.
createdAt
string
2025-10-30T19:03:47.809Z
Date of creation of the datastore entry
updatedAt
string
2025-10-30T19:03:47.809Z
Date at which the datastore entry was last updated