Ship

Developer platform lifecycle

Everything from creating your organisation to a reviewed production release happens on developers.salopha.com, or through the same /v1/developer API it uses. SALOPHA staff verify organisations and review production releases before launch.

Last updated: November 7, 2026 · Browser SDK 1.6.0 · Bridge protocol 1.2

Overview#

  1. Organisation. Create an organisation; it starts with KYB (business verification) pending. SALOPHA staff verify it.
  2. App. Create a draft app and edit its manifest (audience, scopes, origins, launch URL, branding…). Drafts may be incomplete.
  3. Release. Freeze a version of the manifest into a release on a channel: internal, beta or production. Releases are validated strictly.
  4. Test. Publish internal and beta releases at once; only your testers see them.
  5. Review. Submit a production release. SALOPHA reviews security and function and approves or rejects with notes.
  6. Publish. Publish the approved release to a percentage of users, raise the rollout, or roll back.
  7. Operate. Rotate client credentials, manage event-signing keys, set your webhook endpoint, and watch your licence.

All routes below are under https://api.salopha.com/v1, called with the signed-in developer's SALOPHA user token. :devId is your organisation id.

Organisations and members#

POST /developer/orgs   { "name": "Reef Labs", "companyName": "Reef Labs LLC", "country": "IQ", "website": "https://reef.example", "supportEmail": "[email protected]" }
→ 201  the organisation, with "kybStatus": "pending"

Any signed-in user can create an organisation and becomes its owner. Production publishing needs kybStatus: "verified"; SALOPHA staff verify the organisation after checking its documents.

RoutePurpose
GET /developer/meYour organisations and your role in each
GET /developer/:devId/membersMembers with their roles
POST /developer/:devId/members { phoneE164, role }Add a SALOPHA user by phone number
PUT /developer/:devId/members/:userId { role }Change a role
DELETE /developer/:devId/members/:userIdRemove a member
RoleCan
owner, adminManage everything: members, apps, releases, keys, endpoint, licence
finance, viewerRead only

Apps and manifests#

POST /developer/:devId/apps   { "slug": "reef-orders", "category": "food", "name": { "ar": "طلبات الريف", "en": "Reef Orders" } }
→ 201  the draft app
RoutePurpose
GET /developer/:devId/appsYour apps
GET /developer/:devId/apps/:appIdThe app and its draft manifest
PUT /developer/:devId/apps/:appId { manifest?, categoryId? }Edit the draft. manifest is merged into the draft, so send only what changed.
GET /developer/:devId/apps/:appId/statusWhere the app stands: draft, releases, review, live version, rollout

The draft holds every manifest field, including the audience, scopes, allowed origins, launch URL and branding. It may be incomplete while you work; the strict checks run when you create a release.

Releases and channels#

POST /developer/:devId/apps/:appId/releases
     { "version": "1.3.0", "channel": "production", "changelog": "Business consoles", "manifest": { … } }

A release is a frozen snapshot of the manifest (the draft, plus manifest if given). version must be higher than every earlier release. GET …/releases lists them.

ChannelWho sees itReview
internalYour testersNo
betaYour testersNo
productionEveryone in your rolloutRequired

Testers are SALOPHA users listed by phone number:

GET /developer/:devId/apps/:appId/testers
PUT /developer/:devId/apps/:appId/testers   { "phones": ["+9647700000001", "+9647800000002"] }

Platform review#

POST /developer/:devId/apps/:appId/releases/:rid/submit
GET  /developer/:devId/apps/:appId/releases/:rid/review

Only production releases are submitted. The review moves through submitted → securityReview → functionalReview → approved, or ends rejected with notes. The review route returns the status, the reviewers' notes and requested changes, the per-scope reviews and the history. Fix what was asked, create a new release (higher version) and submit again.

Publishing, rollout and rollback#

POST /developer/:devId/apps/:appId/releases/:rid/publish   { "rolloutPercent": 10 }
PUT  /developer/:devId/apps/:appId/rollout                 { "percent": 50 }
POST /developer/:devId/apps/:appId/rollback                { "releaseId": "rel_…" }
  • A production release can be published once its review is approved, its scopes are approved and your organisation is verified.
  • Internal and beta releases publish without review; only your testers get them.
  • rollout changes the share of users on the live production release.
  • rollback without a body returns to the previous published production release; pass releaseId to choose one.

Keys, endpoint and licence#

RoutePurpose
POST /developer/:devId/apps/:appId/client/rotateNew client credentials → { keyId, clientSecret }. The secret is shown once; the old one stops working.
GET /developer/:devId/apps/:appId/keysEvent-signing keys (for transaction events)
POST /developer/:devId/apps/:appId/keys { publicKeyPem }Register your Ed25519 public key (SPKI PEM)
POST /developer/:devId/apps/:appId/keys { generate: true }SALOPHA generates a pair → { keyId, privateKeyPem }, the private key shown once
DELETE /developer/:devId/apps/:appId/keys/:kidRetire a key. At most two keys are active, so you can rotate without downtime.
PUT /developer/:devId/apps/:appId/endpoint { url }Your webhook base: SALOPHA POSTs events to <url>/webhooks (and calls <url>/objects/search, <url>/objects/resolve…). See Calls from SALOPHA.
GET /developer/:devId/apps/:appId/licenceThe licence card
POST /developer/:devId/apps/:appId/licence/revokeRevoke the client credentials at once (rotate to restore)

The licence is your app's right to run in production: an approved, published release plus active client credentials.

{ "licenceId": "lic_…", "appId": "…", "status": "active", "issuedAt": "2026-11-07T10:00:00Z", "expiresAt": null,
  "clientKeyId": "ck_…", "liveVersion": "1.3.0" }

status is active, inactive (nothing published, or no active credentials) or revoked. expiresAt is null: licences don't expire while the app stays published and its credentials active.

Store secrets once. The client secret and a generated private key are only in the response that creates them. Put them in your secret store immediately; if one leaks, rotate (or revoke) right away.