okaeDocs
APIExperimental

API reference · v1

Resolve repository setup status

GET
/api/v1/repository-context

Find a repository in the signed-in workspace by its Git remote. When the repository cannot be identified in scope, return the same generic setup action as for an unknown repository. No name, binding, or assessment from another workspace is revealed. Unsupported hosts are rejected without a request to that host. A failed provider read is an error.

Authorization

apiSession
AuthorizationBearer <token>

Owner credential for a single workspace. Expires after seven days or on revocation.

In: header

Query Parameters

remote*string

Canonical GitHub repository URL derived from the selected remote or --repo.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/repository-context?remote=string"
{  "workspace_id": "63d66c0c-6cd9-428d-ae50-03344c0086fe",  "repository": {    "id": "b24a126b-76a2-46e4-ae08-95477789565f",    "full_name": "example/inventory"  },  "status": "ready",  "mode": "shadow",  "next_action_url": null,  "latest_assessment": null}