Skip to main content
POST
/
api
/
triples
curl --request POST \
  --url https://neode.ai/api/triples \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "Elon Musk",
  "predicate": "founded",
  "object": "SpaceX",
  "object_type": "entity",
  "confidence": 0.95,
  "source": "https://wikipedia.org/wiki/SpaceX",
  "graph_id": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "subject": "<string>",
    "predicate": "<string>",
    "object": "<string>",
    "object_type": "literal",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "confidence": 0.5,
    "source": "<string>",
    "graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "subject_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "object_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z"
  },
  "inserted_count": 123
}

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
subject
string
required
predicate
string
required
object
string
required
object_type
enum<string>
default:literal
Available options:
literal,
entity
confidence
number
Required range: 0 <= x <= 1
source
string<uri>
graph_id
string<uuid>
index_id
string<uuid>

Response

Successfully created

success
boolean
message
string
data
object

A knowledge triple representing a fact as subject-predicate-object

inserted_count
integer