# Developer applications

Canonical: https://saturncrm.com/docs/developer-apps

Private application installations, scoped credentials, custom objects and customer data continuity.

## Private developer preview

Open [Developers](https://saturncrm.com/app/developers) in your workspace. The Applications and Customer data sections appear when the developer preview is enabled for the deployment. The preview supports private applications installed in the same workspace where they were registered. Marketplace installation and external OAuth consent are not available yet.

1. As a workspace administrator, register an application.
2. Publish an immutable version with its capabilities and custom object definitions.
3. Review the version’s capabilities and install it. Object keys must be unique in the workspace; an installation cannot overwrite customer data.
4. Create a named installation credential with a subset of the installed permissions. Save the secret in your server’s credential store.

Installation credentials are intended for background server integrations. They are restricted to their installation’s custom objects, cannot manage applications, and cannot access the core CRM endpoints. They do not implement a partner sign-in or external user licensing model.

## Custom object API

Call GET /v1/objects to discover schemas. Fields support text, finite numbers, booleans, dates, datetimes and enums. Unknown fields, invalid values and missing required fields are rejected. Schema changes and object relationships are not supported in this preview.

| Operation | Endpoint |
| --- | --- |
| List records | GET /v1/objects/{key}/records?limit=100&cursor={nextCursor} |
| Create | POST /v1/objects/{key}/records |
| Read | GET /v1/objects/{key}/records/{id} |
| Update | PATCH /v1/objects/{key}/records/{id} |
| Soft delete | DELETE /v1/objects/{key}/records/{id}?version={version} |
| Restore | POST /v1/objects/{key}/records/{id}/restore |
| Export all records | GET /v1/objects/{key}/export |
| Incremental changes | GET /v1/developer/changes?cursor={nextCursor} |

```
{
  "values": { "number": "POL-1001", "premium": 2400 },
  "externalId": "policy-system:1001"
}
```

Record lists return data and nextCursor. External IDs are unique per object, including deleted records. PATCH merges supplied values and requires the current version; a stale version returns 409. Restore also requires the current version.

POST custom record creation supports Idempotency-Key for 24 hours. Retry the identical body with the same key after a network failure. Reusing the key for a different object or payload returns 409. Other mutation endpoints do not promise idempotent replay; read their current state before retrying.

With the preview enabled, ordinary workspace API keys can use list_custom_objects, list_custom_records and get_custom_record over MCP. The create_custom_record and update_custom_record tools require write access and apply changes immediately; they do not use the human proposal queue. Installation credentials use REST only.

## When an application is removed

Uninstalling immediately revokes all installation credentials. Object definitions and customer records remain in the workspace. Workspace users can still browse them in Customer data and download an export without the original developer’s software. Apps can soft-delete records only when their installation and credential both include records:delete. No application endpoint permanently erases customer records.

Export streams newline-delimited JSON and includes active and soft-deleted records. It reads live pages rather than a single transaction snapshot; concurrent updates can affect the result. For synchronization, persist the change cursor and fetch records by ID. Change events include version and deletion tombstones.

The preview retains deleted records indefinitely. Automated retention purges, schema adoption and workflow continuity are pending. Workspace closure and administrator-operated erasure are separate from app uninstall.
