Skip to main content
POST
/
base_create
Create a new `base`.
curl --request POST \
  --url https://api.ragkit.com/v1/base_create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "namespace": "<string>",
  "key": "<string>",
  "description": "<string>"
}
'
{
  "success": true,
  "data": {
    "namespace": "<string>",
    "key": "<string>",
    "description": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
namespace
string
required

The namespace in which the base will be created. If the namespace doesn't exist it will be automatically created.

Required string length: 3 - 63
key
string | null

The key of the base to create.

  • Must be unique to the specified namespace.
  • Must only contain A-Z, a-z, 0-9, dash (-), or underscore (_).
  • Must have length between 3-63 (inclusive).

A prefixed UUID will be generated for you if this is omitted.

Required string length: 3 - 63
description
string | null

A description of the base.

  • Must have length between 1-1024 (inclusive).
Required string length: 1 - 1024

Response

Success

success
enum<boolean>
required

Always true.

Available options:
true,
false
data
object
required

The base.