Context

Add context to workspace

Changed on

Add arbitrary context through unstructured text. This endpoint allows you to provide contextual information about (new or existing) people or companies. Returns an artifact_id that can be used to retrieve the processing results via GET /v1/context/artifacts/{artifact_id}.

post/v1/context/text

Request

  • Base URL
    https://app.nex.ai/api/developers
  • Auth
    API key in header Authorization

Request body

contentstring required

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

contextstring

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

Example request

{
  "content": "Marcus Rodriguez commented: \"Would love to book a demo\"",
  "context": "New LinkedIn activity"
}

Response

Context processing initiated, returns artifact_id for retrieving results

artifact_idinteger

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

Example response

{
  "artifact_id": 32710180831586560
}

Changes