Build with .git API

Programmatic access to repos, deployments, pipelines, and team management. RESTful, versioned, and designed for developers.

GET https://api.git.dev/v1/repos

Endpoint Reference

GET /v1/repos/{owner}/{name}/deployments

Retrieve a paginated list of deployments for a specific repository. Supports filtering by environment, status, and date range.

Parameters

Name Type Description
owner Required string Account or organization name
name Required string Repository slug
env string Filter by environment (prod, staging, preview)
limit integer Max items per page (default: 20, max: 100)
curl -X GET "https://api.git.dev/v1/repos/org/my-app/deployments?env=prod&limit=10" \ -H "Authorization: Bearer $GIT_API_KEY" \ -H "Content-Type: application/json"
const { Client } = require("@git/api"); const client = new Client({ token: process.env.GIT_API_KEY }); const deployments = await client.deployments.list({ owner: "org", name: "my-app", env: "prod", limit: 10 }); console.log(deployments);
import os from git_sdk import Client client = Client(api_key=os.getenv("GIT_API_KEY")) response = client.deployments.list( owner="org", name="my-app", env="prod", limit=10 ) print(response.json())
package main import ( "fmt" "github.com/git-sdk/go" ) func main() { client := git.NewClient(os.Getenv("GIT_API_KEY")) deployments, err := client.Deployments.List(ctx, "org", "my-app", &git.DeployListOpts{ Env: git.Ptr("prod"), Limit: git.Ptr(10), }) fmt.Println(deployments) }

Response (200 OK)

{ "data": [ { "id": "dep_8x92k1m4", "status": "deployed", "env": "production", "url": "https://my-app.git.dev", "created_at": "2025-03-14T08:42:11Z", "commit_sha": "a1b2c3d4e5" } ], "meta": { "page": 1, "per_page": 10, "total": 42, "has_next": true } }

System Status

All services are operational. Real-time uptime and incident tracking available in the dashboard.

APIHealthy
DeploymentsHealthy
CDN/EdgeHealthy

⚡ Rate Limits

Requests are throttled per API key to ensure platform stability. Headers return current usage.

Standard Tier1,000 / min
Pro Tier10,000 / min
EnterpriseCustom / Unlimited

Authentication

Authenticate requests using Bearer tokens. Generate and rotate keys from your Developer Dashboard.

# Include in every request header Authorization: Bearer git_sk_live_8f9a2b3c4d5e6f7g8h9i0j