Connections
The connection object
Attributes
signalModestringImmutable Signal key custody selected before pairing. Customer-owned custody is a gated beta for real Linked Devices.
Allowed valuesstandardzero_knowledgeconnectionIdstringrequiredConnection ID. Use it to address this connection in Platform and Messaging requests.
namestringrequiredDisplay label, or the connection identifier when no label is set.
externalIdstringIntegrator correlation supplied when creating the QuickLink for this connection.
tenantIdstringrequiredIdentifier of the team that owns this resource.
typestringrequiredType discriminator for this object.
Allowed valueswhatsappphoneNumberIdstringIdentifier for the phone number.
methodstringrequiredThe connection's method: 'linked_device' pairs as a WhatsApp linked device; 'cloud_api' uses the Meta Cloud API; 'hybrid' combines both methods in one Connection.
Allowed valueslinked_devicecloud_apihybridtestModebooleanrequiredWhether this connection was created as a test connection.
statusstringrequiredCurrent status: CONNECTING, CONNECTED, or DISCONNECTED
statusReasonstringReason for the current status.
configurationobjectSpecifies configuration for this management platform access connection.
Show 7 child fields
newChatCappingobjectnullableSpecifies new chat capping for this management platform access connection.
Show 10 child fields
inspectorobjectInspector state for this Connection. Returned by Get connection only.
Show 1 child field
createdAtstringrequiredISO 8601 timestamp when this resource was created.
updatedAtstringrequiredISO 8601 timestamp when this resource was last updated.
{
"signalMode": "standard",
"connectionId": "string",
"name": "string",
"externalId": "string",
"tenantId": "string",
"type": "whatsapp",
"phoneNumberId": "string",
"method": "linked_device",
"testMode": true,
"status": "string",
"statusReason": "string",
"configuration": {
"requestedHistory": {
"mode": "metadata_only",
"requestFull": true,
"delivery": "archive"
},
"historyConsent": "pending",
"effective": {
"observation": {
"presenceMode": "off",
"typingMode": "off",
"labelMode": "off",
"quickReplyMode": "off"
},
"historySync": {
"mode": "metadata_only",
"requestFull": true,
"delivery": "archive"
},
"hms": {
"enabled": false
}
},
"overrides": {
"historySync": {
"mode": "metadata_only",
"requestFull": true,
"delivery": "descriptor"
},
"hms": {
"enabled": false
},
"observation": {
"presenceMode": "off",
"typingMode": "off",
"labelMode": "off",
"quickReplyMode": "off"
}
},
"sources": {
"observation.presenceMode": "platform",
"observation.typingMode": "platform",
"observation.labelMode": "platform",
"observation.quickReplyMode": "platform",
"historySync.mode": "platform",
"historySync.requestFull": "platform",
"historySync.delivery": "platform",
"hms": "platform"
},
"revisions": {
"team": 0,
"project": 0,
"connection": 0
},
"application": {
"desiredGeneration": 0,
"appliedGeneration": 0,
"status": "pending"
}
},
"newChatCapping": {
"enabled": true,
"pacing": true,
"status": "first_warning",
"capped": true,
"limit": 50,
"used": 26,
"remaining": 24,
"cycleStartsAt": "string",
"resetsAt": "string",
"observedAt": "string"
},
"inspector": {
"claim": {
"claimed": true,
"claimedAt": "2026-09-22T12:00:00Z"
}
},
"createdAt": "string",
"updatedAt": "string"
}Start connection
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Requests an asynchronous start. Test connections retain the original attempt: a ready Connection resumes the same runtime, while a stopped Connection requires confirmed cleanup before a successor starts. Acceptance does not mean the Connection is connected. An unfinished testing invitation must resume through its original link. A hosted paid number must reserve credit before connecting; insufficient available credit returns 402. A new paid window is charged only after the messaging method succeeds. Monthly project and number credit limits also apply: a new charge that would exceed either limit returns 409 state_conflict. Already-paid service remains available until its paid window ends. The identifier may be the connection UUID or stable connection slug.
Requires connections:manage. Project tokens only access resources in their own project.
A start request creates an operation. Keep its operation ID and check the operation until it reaches a terminal status. A pending or running operation does not mean the Connection is connected.
If a start takes longer than expected, check the existing operation and the Connection's status before submitting another start. Include the operation ID when contacting support so they can inspect the same request.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Body
projectIdstring (uuid)Identifier of the Polymorfa project that owns this resource.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
401Missing/invalid credential for this audience.
402`billing_credit_required`: the paid number could not reserve enough available credit. Add credit to your team before starting it.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
409The request conflicts with the resource's current state.
500The connection-control publisher or test connection persistence path is temporarily unavailable.
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/start" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"projectId": "00000000-0000-4000-8000-000000000000"
}'{
"data": {
"starting": true,
"connectionId": "00000000-0000-4000-8000-000000000000"
}
}List connections
- Base URL
https://api.polymorfa.com- Required permission
connections:read
Lists connections in the authenticated team or selected project, including disconnected connections and their latest status reason. A Test key returns only test connections in its project, or an empty list when there are none. Other project tokens return all connections in their own project.
Requires connections:read. Project tokens only access resources in their own project.
Query parameters
projectIdstringIdentifier of the Polymorfa project that owns this resource.
Responses
200Success
dataarray of objectrequiredStructured data carried by this object.
Show 18 child fields
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
curl "https://api.polymorfa.com/platform/connections" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"data": [
{
"_id": "00000000-0000-4000-8000-000000000000",
"_creationTime": 0,
"projectId": "00000000-0000-4000-8000-000000000000",
"connectionId": "string",
"name": "string",
"phone": "string",
"platform": "string",
"isBusiness": true,
"testMode": true,
"tierOverride": "free",
"status": "string",
"statusReason": "string",
"messageCount": 0,
"lastActiveAt": 0,
"paidUntil": 0,
"customer": {
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"isDefault": true
},
"claim": {
"kind": "unclaimed"
},
"inspector": {
"claim": {
"claimed": true,
"claimedAt": "2026-09-22T12:00:00Z"
}
}
}
]
}Get cloud credential health
- Base URL
https://api.polymorfa.com- Required permission
connections:read
Returns the latest recurring validation of the Connection's Meta Cloud API credentials: token validity, required permissions, phone registration and webhook subscription.
Path parameters
connectionstringrequiredlength1–128Specifies connection for this path parameter.
Responses
200Credential health
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 8 child fields
Show 3 headers
400Request failed
401Request failed
403Request failed
404Request failed
409Request failed
500Request failed
503Request failed
curl "https://api.polymorfa.com/messaging/<connection>/cloud-credentials" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"success": true,
"data": {
"status": "pending",
"checkedAt": "2026-09-22T12:00:00Z",
"nextCheckAt": "2026-09-22T12:00:00Z",
"token": {
"status": "valid",
"expiresAt": "2026-09-22T12:00:00Z"
},
"missingPermissions": [
"whatsapp_business_messaging"
],
"phoneRegistration": "registered",
"webhookSubscription": "subscribed",
"failureCode": "app_credentials_rejected"
}
}Get connection
- Base URL
https://api.polymorfa.com- Required permission
connections:read
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Responses
200Connection details
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 16 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl "https://api.polymorfa.com/platform/connections/<connectionId>" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"success": true,
"data": {
"connectionId": "string",
"name": "string",
"tenantId": "string",
"type": "whatsapp",
"method": "linked_device",
"testMode": true,
"status": "string",
"createdAt": "string",
"updatedAt": "string"
}
}Get connection account
- Base URL
https://api.polymorfa.com- Required permission
connections:read
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Responses
200Account info
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 9 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl "https://api.polymorfa.com/platform/connections/<connectionId>/me" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"success": true,
"data": {
"pushName": "string"
}
}Get handoff keys
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Responses
200Destination pubkey + correlation id for the handoff
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/handoff-keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"success": true,
"data": {
"runnerPublicKeyB64": "string",
"handoffId": "string"
}
}Get connection tier change
- Base URL
https://api.polymorfa.com- Required permission
connections:read
Reads the quote and durable result for a connection in the authenticated project scope.
Requires connections:read. Project tokens only access resources in their own project.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
quoteIdstringrequiredIdentifier for the quote.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 5 child fields
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
curl "https://api.polymorfa.com/platform/connections/<connectionId>/tier-quotes/<quoteId>" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"data": {
"id": "00000000-0000-4000-8000-000000000000",
"status": "quoted",
"failureReason": "string",
"expiresAtMs": 0,
"quote": {
"tier": "string",
"tierOverride": "string",
"amountCents": 0,
"priceVersion": "string",
"action": "upgrade",
"effectiveAtMs": 0,
"replacesWindowId": "00000000-0000-4000-8000-000000000000"
}
}
}Get connection capabilities
- Base URL
https://api.polymorfa.com- Required permission
connections:read
Returns which WhatsApp features WhatsApp has enabled for this connection, and the limits it applies, as of the connection's last configuration sync. Each value reflects WhatsApp's configuration at syncedAt, not a live check. Values describe the WhatsApp account last linked to the connection, whether or not it is connected now; read the connection for its method status. Before the first sync, from the first sync attempt of another linked WhatsApp account until its configuration is synced, and when Polymorfa cannot tell whether the stored configuration belongs to the account linked now, status is unknown and every value is null. Values come from a linked-device method: a connection that has never had one (Official API only) reports unknown, and a connection whose linked-device method was removed keeps the values last synced. A capability reports what WhatsApp allows the connection; it does not mean the Polymorfa API offers an operation for that feature. This is a beta: teams that are not enrolled receive 403.
Requires connections:read. Project tokens only access resources in their own project.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 7 child fields
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
curl "https://api.polymorfa.com/platform/connections/<connectionId>/capabilities" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"data": {
"connection": "string",
"projectId": "00000000-0000-4000-8000-000000000000",
"status": "synced",
"syncedAt": "2026-09-22T12:00:00Z",
"checkedAt": "2026-09-22T12:00:00Z",
"accountType": "business",
"capabilities": [
{
"key": "string",
"kind": "feature",
"unit": "seconds",
"value": true,
"source": "server"
}
]
}
}Update connection
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Body
configurationobjectrequiredStructured configuration values for this management platform access update connection request.
Show 2 child fields
revisionintegerrequiredmin0Specifies revision for this management platform access update connection request.
Responses
200Desired configuration stored; application reports pending until the runtime acknowledges
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 16 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
409Configuration revision changed or previous runtime cleanup is required before changing history delivery
500Internal server error
503Connection configuration persistence is unavailable
curl -X PUT "https://api.polymorfa.com/platform/connections/<connectionId>" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"configuration": {
"set": {
"historySync": {
"mode": "metadata_only",
"requestFull": true,
"delivery": "descriptor"
},
"hms": {
"enabled": false
},
"observation": {
"presenceMode": "off",
"typingMode": "off",
"labelMode": "off",
"quickReplyMode": "off"
}
},
"reset": [
"historySync"
]
},
"revision": 0
}'{
"success": true,
"data": {
"connectionId": "string",
"name": "string",
"tenantId": "string",
"type": "whatsapp",
"method": "linked_device",
"testMode": true,
"status": "string",
"createdAt": "string",
"updatedAt": "string"
}
}Set connection tier override
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Confirms a previously reviewed tier quote. An upgrade purchases a full fresh 24-hour window without refunding remaining time. A downgrade applies at the paid-window end. Poll the tier quote until applied or rejected; accepting the request does not grant the new tier.
Requires connections:manage. Project tokens only access resources in their own project.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Body
projectIdstring (uuid)Identifier of the Polymorfa project that owns this resource.
quoteIdstring (uuid)requiredIdentifier for the quote.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 5 child fields
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
409The request conflicts with the resource's current state.
curl -X PATCH "https://api.polymorfa.com/platform/connections/<connectionId>" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "00000000-0000-4000-8000-000000000000"
}'{
"data": {
"id": "00000000-0000-4000-8000-000000000000",
"status": "quoted",
"failureReason": "string",
"expiresAtMs": 0,
"quote": {
"tier": "string",
"tierOverride": "string",
"amountCents": 0,
"priceVersion": "string",
"action": "upgrade",
"effectiveAtMs": 0,
"replacesWindowId": "00000000-0000-4000-8000-000000000000"
}
}
}Restart connection
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Test connections wait for confirmed stop before starting the same Connection again. An accepted request remains pending until the Connection connects. Repeating a pending request retains the same attempt; unconfirmed cleanup must be resolved before another attempt.
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Responses
202Restart requested; completion is asynchronous
successbooleanrequiredWhether the request succeeded.
Allowed valuestruemessagestringrequiredHuman-readable message associated with this result.
immediatebooleanWhether immediate.
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/restart" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"success": true,
"message": "string"
}Logout connection
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Responses
202Connection logout scheduled
successbooleanrequiredWhether the request succeeded.
Allowed valuestruemessagestringrequiredHuman-readable message associated with this result.
immediatebooleanWhether immediate.
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/logout" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"success": true,
"message": "string"
}Import handoff state
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Body
handoffIdstringrequiredRound-trip id returned by POST /handoff-keys.
sealedEnvelopeB64stringrequiredSealed-box envelope (ephemeral_pub(32) || ciphertext) wrapping the customer's SignalStoreSnapshot. Base64.
snapshotHashHexstringrequiredSHA-256 of the unsealed snapshot JSON, hex-encoded. The runner verifies after decrypt before flipping bartenderMode.
Responses
200Import accepted; bartenderMode will flip after the runner acks
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/handoff-import" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"handoffId": "string",
"sealedEnvelopeB64": "string",
"snapshotHashHex": "string"
}'{
"success": true,
"data": {
"success": true
}
}Upload app-state keys
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Body
keysarray of objectrequiredmax items1000Keys associated with this management platform access upload app state keys request.
Show 4 child fields
upgradeTostringWhen set, atomically flips connections.config.bartenderMode → passthrough_plus after the keys persist. Eliminates the window where mode is set but no keys are staged.
Allowed valuespassthrough_plus
Responses
200Keys persisted; mode may have been flipped per upgradeTo
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/upload-appstate-keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"keys": [
{
"keyId": "string",
"keyB64": "string",
"timestamp": 0
}
]
}'{
"success": true,
"data": {
"success": true
}
}Confirm handoff
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Path parameters
connectionIdstringrequiredIdentifier for the connection.
Body
handoffIdstringrequiredIdentifier of the session handoff operation.
snapshotHashHexstringrequiredSHA-256 of the snapshot the customer received via mode.handoff_export. API verifies this matches what the runner exported before flipping bartenderMode.
Responses
200Ack accepted; bartenderMode flipped from magic → passthrough
successbooleanrequiredWhether the request succeeded.
Allowed valuestruedataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
400Bad request — request body or params failed validation
401Missing or invalid authentication token
403Authenticated but not permitted (missing scope or rule violation)
404Resource not found
500Internal server error
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/handoff-ack" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"handoffId": "string",
"snapshotHashHex": "string"
}'{
"success": true,
"data": {
"success": true
}
}Quote connection tier change
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Returns the full credit charge and effective time before confirmation. Null tierOverride restores project inheritance. Creating a quote does not change the connection or consume credit. Quotes expire after ten minutes and are invalidated when the connection or price changes.
Requires connections:manage. Project tokens only access resources in their own project.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Body
projectIdstring (uuid)Identifier of the Polymorfa project that owns this resource.
tierOverridestringrequirednullableSpecifies tier override for this management connection tier quote request.
Allowed valuesfreestandardpro
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 5 child fields
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
409The request conflicts with the resource's current state.
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/tier-quotes" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"tierOverride": "free"
}'{
"data": {
"id": "00000000-0000-4000-8000-000000000000",
"status": "quoted",
"failureReason": "string",
"expiresAtMs": 0,
"quote": {
"tier": "string",
"tierOverride": "string",
"amountCents": 0,
"priceVersion": "string",
"action": "upgrade",
"effectiveAtMs": 0,
"replacesWindowId": "00000000-0000-4000-8000-000000000000"
}
}
}Release Inspector claim
- Base URL
https://api.polymorfa.com
Releases the Connection's Inspector claim. Polymorfa first removes the claimant's Inspector device from the Connection; the claim is released only after that succeeds. On a real Connection, only the Inspector device is removed: your phone and Polymorfa's own linked device stay connected. Any team member can then claim the Connection by pairing it in Inspector. A Connection that is already unclaimed returns released: false. Pass expectedClaimedAt from your last read to avoid releasing a newer claim; a different current claim returns 409. When the device cannot be removed, the Connection stays claimed and the request returns 503 with Retry-After; repeating it is safe.
A test Connection requires sandbox:write; a real Connection requires connections:manage. Project tokens only access Connections in their own project. A signed-in Console member must be the claimant or a team owner or admin.
Releases the Connection's Inspector claim after its Inspector devices are revoked. The next claimant must pair it again. It does not transfer the claim to a specified member.
A test Connection requires sandbox:write; a real Connection requires connections:manage. Project tokens are limited to their own project. A signed-in member must hold the claim or be a team owner or admin. Connection-restricted credentials are refused.
Send expectedClaimedAt from inspector.claim.claimedAt in your last Connection read to guard against a changed claim. A changed claim returns 409; refresh before deciding whether to retry. A 503 means device removal was not confirmed. Wait for Retry-After and repeat with the same expected claim time. An already unclaimed Connection returns released: false.
On a real Connection, only the Inspector companion is removed. Your phone and Polymorfa's linked device stay connected.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Body
expectedClaimedAtstring (date-time)The
inspector.claim.claimedAtvalue you last read. A different current claim returns 409.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 1 child field
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
409The request conflicts with the resource's current state.
503`service_unavailable`: the claimant's Inspector device could not be removed, so the Connection is still claimed. Nothing changed. Retry after `Retry-After` seconds; repeating the request is safe.
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/inspector/claim/release" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"expectedClaimedAt": "2026-09-22T12:00:00Z"
}'{
"data": {
"released": true
}
}Stop connection
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Requests an asynchronous stop for one connection. The identifier may be the connection UUID or stable connection slug.
Requires connections:manage. Project tokens only access resources in their own project.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Body
projectIdstring (uuid)Identifier of the Polymorfa project that owns this resource.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
500The connection-control publisher or test connection persistence path is temporarily unavailable.
curl -X POST "https://api.polymorfa.com/platform/connections/<connectionId>/stop" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"projectId": "00000000-0000-4000-8000-000000000000"
}'{
"data": {
"stopping": true,
"connectionId": "00000000-0000-4000-8000-000000000000"
}
}Stop connections
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Requests asynchronous stops for up to 100 connection UUIDs or slugs in the authenticated project scope.
Requires connections:manage. Project tokens only access resources in their own project.
Body
projectIdstring (uuid)Identifier of the Polymorfa project that owns this resource.
connectionIdsarray of stringrequireditems1–100unique itemsitem length1–64Connection ids associated with this management connection batch request.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 1 child field
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
500The connection-control publisher or test connection persistence path is temporarily unavailable.
curl -X POST "https://api.polymorfa.com/platform/connections/stop" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"connectionIds": [
"string"
]
}'{
"data": {
"stopping": 0
}
}Delete connection
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Permanently removes a test connection. Production-connection deletion requires support and returns 409 without removing the connection.
Requires connections:manage. Project tokens only access resources in their own project.
Path parameters
connectionIdstringrequiredlength1–64Database connection UUID or stable connection slug.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 2 child fields
Show 3 headers
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
404The requested resource was not found inside the authenticated team or project scope.
409The request conflicts with the resource's current state.
curl -X DELETE "https://api.polymorfa.com/platform/connections/<connectionId>" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22"{
"data": {
"removed": true,
"connectionId": "00000000-0000-4000-8000-000000000000"
}
}Delete connections
- Base URL
https://api.polymorfa.com- Required permission
connections:manage
Permanently removes up to 100 test connections. A batch containing a production connection returns 409 without removing any connection.
Requires connections:manage. Project tokens only access resources in their own project.
Body
projectIdstring (uuid)Identifier of the Polymorfa project that owns this resource.
connectionIdsarray of stringrequireditems1–100unique itemsitem length1–64Connection ids associated with this management connection batch request.
Responses
200Success
dataobjectrequiredStructured data carried by this object.
Show 1 child field
Show 3 headers
400A path, query, or request-body value did not pass validation.
401Missing/invalid credential for this audience.
403Authenticated but lacks the required scope/role/audience.
409The request conflicts with the resource's current state.
curl -X POST "https://api.polymorfa.com/platform/connections/delete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Polymorfa-Version: 2026-09-22" \
-H "Content-Type: application/json" \
-d '{
"connectionIds": [
"string"
]
}'{
"data": {
"removed": 0
}
}