Find which cell holds the project's sandboxes

Where a client sends the project's sandbox calls.

GET/v1/cell

Where a client sends the project's sandbox calls. A project bound to a cell in a customer's own cloud account answers that cell's endpoint: Pod's front door serves the project's account calls but answers its sandbox calls (Sandboxes, Commands, Files, Snapshots, Operations, Screens and Ports) with in_other_cell and never forwards them. A client asks once, on its first such call, and pins the answer; the SDKs and mpod do. The endpoint is read from the project's settings, which the account service keeps, not from an error's answer. Any key of the project may ask, whatever scopes it holds, and answers for its own project; a person names the project in project and needs a role that reaches it.

Request

curl "https://api.pod.mapier.ai/v1/cell" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
projectquerystringNoA person's project. A key answers for its own and may leave it out.

Answer

200. The project's cell.

200
{
  "project": "prj_3ahrz6dmv29gqy5ckt18fp",
  "cell_endpoint": null
}
FieldTypeAlwaysWhat it is
projectstringYes
cell_endpointstring | nullYesThe endpoint of the project's customer cell, where its sandbox calls go from now on; null when its sandboxes are in Pod's own cells.

Errors

The refusals this call is known for: invalid, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.