==> call the api
A project's own API
POST /v1/p/{slug}/{path}
Everything under /p/<project>/ is the project's own backend: its routes are in its document (/p/<project>/openapi.json). Any method; WebSockets too.
Needs a personal access token: Authorization: Bearer <token>.
Parameters
| name | in | type | what | |
|---|---|---|---|---|
slug | path | string | required | |
path | path | string | required |
Answer
200 Success.
Refusals
Each answers { "error": "...", "code"?: "..." } with its status.
| status | when |
|---|---|
401 | No valid token. |
404 | No such project, or no such route in it. |
503 | The project's service is not running. |
Example
curl -X POST 'https://api.clusterstuck.sh/v1/p/{slug}/{path}' \
-H 'Authorization: Bearer <your token>'