Skip to main content
POST
/
v1
/
context
/
text
Add context to workspace
curl --request POST \
  --url https://app.nex.ai/api/developers/v1/context/text \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "Marcus Rodriguez commented: \"Would love to book a demo\"",
  "context": "New LinkedIn activity"
}
'
{
  "artifact_id": 32710180831586560
}

Authorizations

Authorization
string
header
required

API key for authentication (format: "Bearer YOUR_API_KEY")

Body

application/json

Context text to add

content
string
required

The unstructured text containing context information about people, companies, or other entities

context
string

Optional additional context about the content (e.g., source, type of activity)

Response

Context processing initiated, returns artifact_id for retrieving results

artifact_id
integer

Unique identifier for the processing artifact. Use this ID to retrieve results via GET /v1/context/artifacts/{artifact_id}