OSPRY Docs

Developers

Versioning policy

Who this is for: Developers who build on the OSPRY API or receive OSPRY webhooks · Where: The edge push host (https://{customerPublicId}.lgnapi.com/v1/*), the portal origin (https://app.ospry.ai/api/v1/*), and your webhook receiver

What this does

This page explains how OSPRY changes the API and the webhook without breaking your code. One rule covers both: we can add things inside a version at any time, and we only take things away in a new version, with notice.

The rule in one table

Change Breaking? Where it lands
Add a response field No Inside the current version
Add an optional request parameter No Inside the current version
Add a new webhook event type No Inside the current version
Remove a field Yes The next version
Rename a field Yes The next version
Change a field's type Yes The next version
Change what an existing event means Yes The next version

Build your code so additions do not break it. Ignore fields you do not know. Ignore events you do not handle.

API paths

The API lives on two hosts. Each path carries a version segment.

Host Used for Current version
https://{customerPublicId}.lgnapi.com Pushes: POST /v1/contacts, /v1/contacts/{sourceId}, /v1/contacts/highlevel /v1
https://app.ospry.ai The field schema (GET /api/v1/schema), and later reads, search, analytics and webhook management /api/v1
  • Additions land inside v1. A new response field or a new optional parameter can appear on a v1 path at any time.
  • Breaking changes need the next segment. A removal, rename or type change ships as /v2 on the edge host, or /api/v2 on the portal origin. The v1 path keeps working through the notice period below.
  • Reads are not live yet. Read, search, analytics and webhook management endpoints are planned for https://app.ospry.ai/api/v1/.... They will follow this same rule when they ship. See Not yet available.

Webhook payloads

Each webhook connection picks a payload version in its settings. There are two.

Payload version Shape Changes
v1 The original flat body Frozen. It never changes. A connection with no choice made uses v1.
v2 An envelope with a subject that holds the contact Grows by addition. Each body carries a dated contract_version.

How v2 changes

Every v2 delivery carries a dated contract stamp, today 2026-09-04. You see it in two places:

  • the contract_version key in the body, and
  • the X-Ospry-Contract header on the delivery.

The rules for v2:

  • Adding a field to v2 moves only the date. The new date tells your code the shape grew. Nothing you already read goes away.
  • Removing, renaming or retyping a field needs a new payload version. That would ship as a new choice next to v1 and v2. Your connection stays on the version you picked until you change it.

So you have two handles. Pin the payload version to be sure the shape never shrinks under you. Watch contract_version to learn when the shape has grown.

The same dated stamp is on the field schema at GET https://app.ospry.ai/api/v1/schema, so you can generate a client from the schema and pin the date.

Events

  • A new event type is not a breaking change. OSPRY can start sending a new event at any time. Your receiver must ignore events it does not handle. Read the X-Sight-Event header, and skip any value you do not know. Still answer 2xx, so OSPRY does not retry it.
  • Changing what an existing event means is breaking. That needs the next version and the notice period below.

See Webhooks for the events sent today and how to verify each delivery.

Notice before a breaking change

OSPRY gives at least 90 days between announcing a breaking change and turning the old shape off. During that time the old and new versions both work, so you can move at your own pace.

Every contract date change and every new event type is recorded in the Changelog.

Tips & FAQs

  • Do I need to do anything when contract_version changes? No. Your code keeps working. Read the Changelog to see what was added, then use the new fields if you want them.
  • Should I switch my webhook to v2? Use v2 for new work. It has the richer contact and the contract stamp. v1 stays available and frozen, so existing receivers do not have to move.
  • Will a v1 webhook ever get new fields? No. v1 is frozen. New fields only appear in v2.
  • How do I spot a new event early? Log any X-Sight-Event value your receiver does not handle. It tells you a new event has started.