Reconnect runtime
Rebuilds the provider connection when the account is online but the runtime connection is unhealthy.
https://api.unifyport.ai/v1/accounts/{account_id}/runtime/reconnectHeaders
X-Api-KeyWorkspace API key. The workspace is resolved from this header.
Content-TypeUse application/json when sending a JSON request body.
Path parameters
account_idIdentifier used in the runtime route.
Request body
This endpoint accepts an empty JSON object; send {} exactly as shown in the request example.
Response body
account_idProvider account this response refers to.
providerProvider whose runtime handled the action.
enum: telegram, whatsapp, line, twitter, zalo, tiktok, whatsapp_protocol
actionRuntime action that was requested.
enum: refresh_status, start, stop, reconnect
operation_statusWhether the runtime action was accepted or completed.
runtime_statusNormalized runtime state: one of unknown, starting, running, stopping, stopped, reconnecting, disconnected, or error.
enum: unknown, starting, running, stopping, stopped, reconnecting, disconnected, error
runtime_errorProvider runtime error when the action could not complete.
Responses
200Request succeeded. See the example response body.
400The request body, path, or parameters are invalid.
401The X-Api-Key header is missing or invalid.
409The requested operation conflicts with an existing provider account or resource.
500The service encountered an unexpected error.
502The provider adapter or upstream provider could not complete the operation.
Request
curl -X POST https://api.unifyport.ai/v1/accounts/{account_id}/runtime/reconnect \
-H "X-Api-Key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"data": {
"runtime_status": "reconnecting"
}
}