Skip to content
Verified

Check a deployment

Look up what is running at a project's access URL right now, from the id a project list gives you.

get_deploy_info is a single-app status read: type, access URL, and status code, plus the deploy configuration that produced it. Pair it with list projects and deployments to go from "everything this account has" to "is this one thing actually up."

Method

POST/cpi/get_deploy_info
none

Get Deploy Info

Returns summary deployment info for an app (type, status, access URL, deploy data, and the replicate app's icon properties).

Walkthrough

Call it with the app_id

The only field is app_id, the id a project or deployment row already gave you.

curl -s https://xuda.ai/cpi/get_deploy_info \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","app_id":"app_5d9e21"}'
const res = await fetch('https://xuda.ai/cpi/get_deploy_info', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ api_key: 'YOUR_API_KEY', app_id: 'app_5d9e21' }),
});
const { code, data } = await res.json();
if (code > 0) console.log(data.app_access_url, data.app_status_code);
import requests

res = requests.post(
    'https://xuda.ai/cpi/get_deploy_info',
    json={'api_key': 'YOUR_API_KEY', 'app_id': 'app_5d9e21'},
)
body = res.json()
if body['code'] > 0:
    print(body['data']['app_access_url'], body['data']['app_status_code'])

The response

json
{
  "code": 1,
  "data": {
    "_id": "app_5d9e21",
    "app_type": "master",
    "app_name": "Marketing site",
    "app_access_url": "https://marketing-site-482.xuda.app",
    "app_status_code": 3,
    "docType": "app",
    "docDate": 1735689600000,
    "app_uId": "acc_8f2a1c",
    "app_icon_prop": { "app_icon_background_color": "#4f46e5", "app_icon_size": "md" },
    "deploy_data": { "...": "the deploy configuration that produced this app, shaped by app_type" }
  }
}

app_icon_prop here is copied from the project's replicate app, the template this deployment was published from, not from app_id itself, that is what get_deploy_info reads it for. The only status code confirmed across this codebase is 4, removed: every list view that feeds this recipe (user_projects, user_deployments) filters app_status_code < 4, so a code you get back here from an id that list handed you will always be below 4.

Errors

Next