Skip to main content
POST
/
api
/
v1
/
projects
/
{project_id}
/
sources
Create Source
curl --request POST \
  --url https://api.example.com/api/v1/projects/{project_id}/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Type": "IMAGE",
  "Source": {
    "Type": "TEXT",
    "Source": "<string>"
  },
  "Description": "<string>",
  "IngestionStatus": "PENDING"
}
'
{
  "data": {},
  "success": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required

Body

application/json
Type
enum<string>
required
Available options:
IMAGE,
DOCUMENT,
WEBSITE,
TEXT
Source
Source · object
required
Description
string | null
IngestionStatus
enum<string>
default:PENDING
Available options:
PENDING,
SUCCESS,
FAILED

Response

Successful Response

success
boolean
required
data
unknown