Overview#
- Organisation. Create an organisation; it starts with KYB (business verification)
pending. SALOPHA staff verify it. - App. Create a draft app and edit its manifest (audience, scopes, origins, launch URL, branding…). Drafts may be incomplete.
- Release. Freeze a version of the manifest into a release on a channel:
internal,betaorproduction. Releases are validated strictly. - Test. Publish
internalandbetareleases at once; only your testers see them. - Review. Submit a
productionrelease. SALOPHA reviews security and function and approves or rejects with notes. - Publish. Publish the approved release to a percentage of users, raise the rollout, or roll back.
- 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.
| Route | Purpose |
|---|---|
GET /developer/me | Your organisations and your role in each |
GET /developer/:devId/members | Members 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/:userId | Remove a member |
| Role | Can |
|---|---|
owner, admin | Manage everything: members, apps, releases, keys, endpoint, licence |
finance, viewer | Read only |
Apps and manifests#
POST /developer/:devId/apps { "slug": "reef-orders", "category": "food", "name": { "ar": "طلبات الريف", "en": "Reef Orders" } }
→ 201 the draft app
| Route | Purpose |
|---|---|
GET /developer/:devId/apps | Your apps |
GET /developer/:devId/apps/:appId | The 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/status | Where 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.
| Channel | Who sees it | Review |
|---|---|---|
internal | Your testers | No |
beta | Your testers | No |
production | Everyone in your rollout | Required |
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 isverified. - Internal and beta releases publish without review; only your testers get them.
rolloutchanges the share of users on the live production release.rollbackwithout a body returns to the previous published production release; passreleaseIdto choose one.
Keys, endpoint and licence#
| Route | Purpose |
|---|---|
POST /developer/:devId/apps/:appId/client/rotate | New client credentials → { keyId, clientSecret }. The secret is shown once; the old one stops working. |
GET /developer/:devId/apps/:appId/keys | Event-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/:kid | Retire 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/licence | The licence card |
POST /developer/:devId/apps/:appId/licence/revoke | Revoke 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.