Skip to content

Repositories

A repository is a private Git store owned by your user. There are no public repos in the product today.

  • Recommended: ^[a-z0-9_-]+$
  • Web UI: 1 to 32 characters
  • API: 1 to 64 characters
  • Unique per user. POST returns 409 if the name is taken.
Terminal window
amendable repo create my-repo --description "scratch space"
amendable repo create my-repo --storage-bucket-id 11111111-1111-1111-1111-111111111111

--storage-bucket-id must be a verified (ACTIVE) BYO bucket you own. Omit it to use the account default bucket, or platform storage if you have no default.

Needs grant API_REPOS_WRITE or ALL.

Response (201):

{
"username": "demo",
"name": "my-repo",
"active": true,
"description": "scratch space",
"storage_source": "platform"
}

storage_source is repo (bound bucket), default (account default BYO), or platform.

Terminal window
amendable repo list --json
amendable repo get my-repo --json
Terminal window
curl -sS https://api.amendable.io/v1/repositories \
-H "access-token: $AMENDABLE_TOKEN"
curl -sS https://api.amendable.io/v1/repos/$AMENDABLE_USERNAME/my-repo \
-H "access-token: $AMENDABLE_TOKEN"

List and get accept any valid token. They only return repositories the token’s scope can see.

git clone https://amendable.io/r/<username>/<repo>.git
https://amendable.io/r/<username>/<repo>
https://amendable.io/r/<username>/<repo>/commits/<branch>
https://amendable.io/r/<username>/<repo>/blob/<branch>/<path>
https://amendable.io/r/<username>/<repo>/raw/<branch>/<path>

amendable repo url my-repo prints the clone URL.

Terminal window
amendable repo delete my-repo --yes
Terminal window
curl -sS -X DELETE \
https://api.amendable.io/v1/repos/$AMENDABLE_USERNAME/my-repo \
-H "access-token: $AMENDABLE_TOKEN"

204 on success. 404 if the name is wrong or the token cannot see it. Needs API_REPOS_WRITE or ALL.

Deleting a repo does not delete a BYO bucket. The bucket cannot be deleted while any repo still depends on it.

LimitFree defaultError
Active repositories5422 active quota exceeded
Total repositories (including inactive)25422 total quota exceeded

Paid plans raise both. See Usage and quotas.