Skip to main content
POST
/
ingest
/
new
/
{namespace}
/
{datasetName}
Create new dataset
curl --request POST \
  --url https://api.datalinks.com/api/v1/ingest/new/{namespace}/{datasetName} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "visibility": "Private",
  "dataDescription": "Employee dataset containing demographics and compensation.",
  "schemaDefinition": {
    "id": "unique employee identifier",
    "name": "full employee name",
    "age": "employee age in years",
    "department": "work department",
    "salary": "annual salary in USD"
  }
}
'
{
  "error_code": "UNAUTHORIZED",
  "message": "Missing authentication token",
  "error_message": "",
  "sub_errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Use a Bearer token for authentication. Submit the token using the Authorization header: Authorization: Bearer <token>.

Path Parameters

namespace
string
required

Namespace for the dataset.

datasetName
string
required

Name of the dataset.

Body

application/json
visibility
enum<string>
required
Available options:
Public,
Private
Example:

"Private"

dataDescription
string

A description of the dataset to help the AI system understand the context.

Maximum string length: 10000
Example:

"Employee dataset containing demographics and compensation."

schemaDefinition
object

A schema definition mapping field names to descriptions, to guide the AI system in structuring the extracted data.

Example:
{
"id": "unique employee identifier",
"name": "full employee name",
"age": "employee age in years",
"department": "work department",
"salary": "annual salary in USD"
}

Response

Creates a new dataset.