Rensei docs
API ReferenceResources

Declare a project's primary harness or sandbox provider.

Creates a project_resources row of kind harness or sandbox-provider for this project. Project-admin write; a signed-in caller with no project admin access gets 403, a machine credential naming a project outside its org (or one that does not exist) gets 404, and a second write for the same (project, kind, role) gets 409.

POST
/api/projects/{projectId}/resources

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Path Parameters

projectId*string

The project id.

Request Body

application/json
  1. body
kind*string

The resource kind to declare (harness or sandbox-provider).

Value in"harness""sandbox-provider"
role?string

Role tag for the resource. Defaults to primary.

Match^[a-z0-9][a-z0-9._-]*$
Length1 <= length <= 64
name*string

Display name for the resource.

Length1 <= length <= 200
config*

Kind-specific resource config payload.

Response Body

The created project resource.

application/json
  1. response
resource*

The created project resource row.

Example Request
curl -X POST 'https://app.rensei.ai/api/projects/string/resources' \  -H 'Content-Type: application/json' \  -d '{  "kind": "harness",  "name": "string",  "config": {    "property1": null,    "property2": null  }}'
Example Response
{  "resource": {    "id": "string",    "kind": "string",    "role": "string",    "name": "string",    "config": {      "property1": null,      "property2": null    },    "property1": null,    "property2": null  }}