Skip to main content
POST
File

Request contract

  • Method and path: POST /apis/v1/github/repositories/file
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/github/repositories/file
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0001 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
path
string
required

File path inside the repository, for example skills/frontend-design/SKILL.md.

ref
string

Branch, tag or commit SHA, with repo and path. Defaults to HEAD, the default branch.

repo
string

Repository as owner/name, for example anthropics/skills. Requires path. Pattern: ^@?/?A-Za-z0-9 [blocked]?/[A-Za-z0-9._-]{1,100}(?:.git)?/?$.

url
string

https://raw.githubusercontent.com/{owner}/{name}/{ref}/{path} or https://github.com/{owner}/{name}/blob/{ref}/{path}. The ref is one segment (branch, tag or SHA) or refs/heads/{branch}. Provide exactly one of url or repo with path. Pattern: ^(?:https?://)?(?:raw.githubusercontent.com/[^/?#\s]+/[^/?#\s]+/|(?:www.)?github.com/[^/?#\s]+/[^/?#\s]+/(?:blob|raw)/)[^?#\s]+(?:[?#].*)?$.

Response

The text of one file in a public GitHub repository at a branch, tag or commit, given as a raw.githubusercontent.com URL, a github.com blob URL, or repo plus path (ref defaults to HEAD, the default branch). One ranged GET to raw.githubusercontent.com, which does not use the REST API's 60/hour quota. Returns at most the first 1 MiB: size_bytes is the full size and truncated marks a cut file, reported as partial. A binary or non-UTF-8 file fails with invalid_input (not_text); a missing file, ref or repository is not_found.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.