N Northfield Docs

API reference

Base URL https://api.northfield.example/v1. All requests are JSON over HTTPS.

Authentication

Send a bearer token in the Authorization header:

Authorization: Bearer nf_live_...

Tokens are scoped per workspace and can be revoked at any time in the console. Requests without a token return 401.

Resources

MethodPathDescription
GET/workspacesList workspaces available to the token
POST/workspacesCreate a workspace
GET/workspaces/{id}/sourcesList connected sources
POST/queriesSubmit a query, returns a job id
GET/jobs/{id}Job status, timings and error details

Pagination

Collections accept limit (default 50, max 200) and cursor. The response includes next_cursor; stop when it is null.

Errors

{
  "error": {
    "code": "source_unreachable",
    "message": "Connection timed out after 10s",
    "request_id": "req_01HX..."
  }
}

Retry 429 and 5xx with exponential backoff; other codes are permanent until the request is corrected.

Streaming

Exports can be streamed as newline-delimited JSON by adding Accept: application/x-ndjson. Streams close after 30 minutes; reconnect using the last seen cursor.