HLIX Repos
HLIX Repos operations in the Hlix API.
See the OpenAPI document for schemas and operation IDs.
Prerequisites
Section titled “Prerequisites”- Protected operations require an API key in
x-api-keyor a browser session cookie; some actions require a verified user session - Tenant-scoped operations use
X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace - The base URL for your deployment,
https://server.hlix.aiby default
Operations
Section titled “Operations”| Method | Path | Operation |
|---|---|---|
GET |
/v1/api/projects/{id}/protected-files |
Read encrypted project files with manage access |
POST |
/v1/api/projects/{id}/repos/{repoId}/access |
Get short-lived Git access to a repository in HLIX Repos |
GET |
/v1/api/projects/{id}/repos/{repoId}/head |
Read a repository head without starting a Cloud Machine |
POST |
/v1/api/projects/{id}/repos/{repoId}/pushed |
Tell the project its source landed in HLIX Repos, so its apps, phone targets and commands are read |
Read encrypted project files with manage access
Section titled “Read encrypted project files with manage access”GET /v1/api/projects/{id}/protected-files · operation ID getProjectProtectedFiles
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ProjectProtectedFiles | Decrypted protected files; private, no-store |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | Project not found |
Get short-lived Git access to a repository in HLIX Repos
Section titled “Get short-lived Git access to a repository in HLIX Repos”POST /v1/api/projects/{id}/repos/{repoId}/access · operation ID createRepoAccess
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
repoId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, RepoAccess (required)
| Property | Type | Required | Notes |
|---|---|---|---|
scope |
read | write |
yes |
Responses
| Status | Body | Description |
|---|---|---|
200 |
RepoAccessResponse | Repository credentials; private, no-store |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | Project or repository not found |
Read a repository head without starting a Cloud Machine
Section titled “Read a repository head without starting a Cloud Machine”GET /v1/api/projects/{id}/repos/{repoId}/head · operation ID getRepoHead
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
repoId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
RepoHeadResponse | Current repository commit |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | Project or repository not found |
Tell the project its source landed in HLIX Repos, so its apps, phone targets and commands are read
Section titled “Tell the project its source landed in HLIX Repos, so its apps, phone targets and commands are read”POST /v1/api/projects/{id}/repos/{repoId}/pushed · operation ID notifyRepoPushed
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
repoId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
202 |
RepoPushedResponse | Queued; the repository is read in the background and a failed read changes nothing |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | Project or repository not found |
If a request fails
Section titled “If a request fails”The response table for each operation lists its documented errors. Common status codes include:
400— the body failed schema validation, or the request named no active organization. AValidationErrorbody carries the failing fields; anApiErrorbody carries onlyerror.401— no valid session or API key.403— authenticated, but not a member of the named organization, or a client collaborator without the required access.404— check the resource ID and your access to the selected Workspace.409— the expected revision or state is stale, or another operation currently owns the transition.500— the operation failed server-side. Retry only where an idempotency key makes that safe.
Next steps
Section titled “Next steps”API reference
Browse endpoints, request fields and responses.
API & OpenAPI
Download the contract, generate a client, and read the compatibility policy.
TypeScript SDK
Auth, retries, typed errors, uploads and streaming, already built.
CLI reference
The same operations from a terminal, with a stable JSON envelope.