Skip to Content
Aperture
REST API

Projects

Create and manage projects and their CI project keys.

User tokens only. Reads need team membership; writes need owner or admin.

Project object

{ "id": "c2a9…", "name": "Reports", "description": "Scheduled reporting jobs", "team_id": "8d41…" }

GET /projects/{team_id}

Lists a team's projects. Note the path takes a team ID.

GET /projects/{id}/details

Returns one project.

POST /projects

{ "project": { "team_id": "8d41…", "name": "Reports", "description": "…" } }

201 with the project. Sends project.created.

PUT /projects/{id}

{ "project": { "name": "Reporting", "description": "…" } }

Sends project.updated.

DELETE /projects/{id}

204. Sends project.deleted.

Project keys

Project keys let CI deploy and run jobs; see Authentication. Any member can list them; creating, rotating, updating and deleting needs owner or admin (others get 403).

Project key object

{
  "id": "e5d2…",
  "name": "github-actions",
  "token_prefix": "apk_Xy12ab",
  "scopes": ["deploy", "run"],
  "enabled": true,
  "last_used_at": "2026-11-23T09:12:44Z",
  "created_by": { "id": "…", "username": "you@example.com" },
  "project_id": "c2a9…",
  "inserted_at": "2026-11-01T10:00:00Z",
  "updated_at": "2026-11-23T09:12:44Z"
}

GET /projects/{project_id}/keys

Lists the project's keys, oldest first. Tokens aren't included.

POST /projects/{project_id}/keys

{ "key": { "name": "github-actions", "scopes": ["deploy", "run"] } }

name is 1 to 100 characters, unique per project. scopes needs at least one of deploy, run, read. 201 with the key plus "token": "apk_…", shown only now.

POST /projects/{project_id}/keys/{id}/rotate

Issues a new token and invalidates the old one. 200 with the key and the new token.

PATCH /projects/{project_id}/keys/{id}

{ "key": { "name": "ci", "enabled": false } }

Only name and enabled can change; scopes are fixed.

DELETE /projects/{project_id}/keys/{id}

204.

On this page