Sinatra Docs
API ReferenceRepositories

Read repository configuration

Returns the repository file, effective configuration, provenance and your own override.

Repository data is cached for 60 seconds; personal overrides are never shared between users. GitHub fetch failures return degraded defaults with fetchError.

GET/v1/workspaces/{workspaceId}/repos/{repoId}/sinatrarc
AuthorizationBearer <token>

A personal access token, which starts with sntr_. Create one on the dashboard's CLI & API page (https://app.sinatra.dev/tokens). It acts as you in every workspace you belong to, with your role in each, and expires after at most 365 days. The CLI's browser sign-in sends an OAuth access token here instead.

In: header

Path Parameters

workspaceIdstring

The workspace's id, from GET /v1/me.

repoIdstring

The repository id from the repos data in GET /v1/workspaces/{workspaceId}.

Response Body

curl -X GET "https://api.sinatra.dev/v1/workspaces/string/repos/string/sinatrarc"
{
  "raw": "string",
  "sourceFile": "string",
  "repoParsed": {
    "property1": null,
    "property2": null
  },
  "repoSource": {
    "property1": "string",
    "property2": "string"
  },
  "parsed": {
    "property1": null,
    "property2": null
  },
  "source": {
    "property1": "string",
    "property2": "string"
  },
  "userFragment": {
    "property1": null,
    "property2": null
  },
  "overridableLeafs": [
    "string"
  ],
  "parseError": "string",
  "fetchError": "string",
  "fetchedAt": "2019-08-24T14:15:22Z",
  "nextTask": {
    "engine": "string",
    "model": "string",
    "effort": "string",
    "reason": "string",
    "modelSource": "string",
    "effortSource": "string"
  },
  "inheritedAutomatic": {
    "engine": "string",
    "model": "string",
    "effort": "string",
    "reason": "string"
  }
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}