SSH access, deploy keys and repository tokens
An APIGit repository is a Git repository, and Git people have opinions about how they connect to one. You can now clone and push over SSH, give a server access to one repository with a deploy key, and use personal access tokens that are limited to repositories. SSH keys and deploy keys are available on every plan, Free included.
Clone over SSH
SSH access is served from git.apigit.com. Generate a key if you do not have one, then add the public key under Settings → SSH Keys:
ssh-keygen -t ed25519 -C "you@example.com"
cat ~/.ssh/id_ed25519.pub
Check that it works:
ssh -T git@git.apigit.com
The first connection asks you to confirm the server's host key. Compare it with the published fingerprints before you answer yes. A successful test greets you by name, and tells you there is no shell: the SSH endpoint only serves Git.
Then open Clone/Download on your repository. The dialog has an HTTPS / SSH switch.

git clone git@git.apigit.com:acme/petstore-platform.git
If your network blocks port 22, SSH is also available on port 443. Add the block from the clone guide to ~/.ssh/config.
Deploy keys for servers
A personal key acts as you, which is the wrong fit for a CI job. A deploy key is an SSH key that gives one server access to one repository.
Repository admins manage them under Settings → Deploy Keys. Give the key a name and paste the public key. A deploy key is read-only unless you check Allow write access, so a job that only needs to fetch your specs cannot push to them.

Tokens limited to repositories
HTTPS stays the default, and it uses a personal access token in place of your password, since username and password authentication is not supported for Git. New tokens are limited to repository access: Git and the repository API. Tokens created earlier keep their original, broader scope and continue to work.
The clone dialog reminds you of this under the HTTPS address, and links to the guide.
Which one should I use?
- On your own computer: SSH, or HTTPS with a token if that is simpler on your network.
- In CI, for one repository: a deploy key, read-only if you can.
- For a script that calls the repository API: a personal access token.
Mirror a repository to another Git host? That is a separate feature, push mirrors, on the Enterprise plan.
Read the full guide in Clone a Repository.