Skip to main content
POST
/
workflows
/
{workflow_id}
/
datastores
/
{name}
/
upload
Upload workflow datastore
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/workflows/{workflow_id}/datastores/{name}/upload \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "records": [
    {
      "title": "Refund policy",
      "body": "Refunds are available within 30 days.",
      "source_url": "https://example.com/refunds"
    }
  ]
}
'
{
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

workflow_id
integer
required
name
string
required

Body

application/json
s3_uri
string

Existing S3 URI containing datastore JSON records.

records
object[]

Inline JSON records to upload for the datastore.

Response

200 - application/json

Upload workflow datastore.

data
any