Cloady Docs
API ReferenceEndpointsWorkspaces

List importable units from a provider, or import one

Credentials are used for this call only and never stored. Without projectId the response is a listing of importable units; with projectId it is an import result whose source can be passed straight to deployApp.

POST
/api/workspaces/{workspaceSlug}/import/{provider}
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
provider*string

Value in

  • "railway"
  • "render"
  • "vercel"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/import/railway" \  -H "Content-Type: application/json" \  -d '{    "credentials": {      "token": "string"    }  }'
{  "units": [    {      "id": "string",      "name": "string",      "group": "string",      "summary": "string",      "importable": true,      "reason": "string"    }  ]}