Gitsink Developer Portal
Access synced GitHub data, enrich metadata, and integrate projects using our REST and GraphQL APIs.
Quickstart
Get started quickly with the Gitsink API using these examples.
Fetch Projects
Retrieve all your synced GitHub projects
curl https://api.gitsink.dev/v1/projects \
-H "Authorization: Bearer YOUR_API_KEY"
Note: Replace YOUR_API_KEY
with your actual API key from the dashboard.
Core Endpoints
Explore the main API endpoints available for your integration needs.
Endpoint | Method | Description |
---|---|---|
/projects | GETREST | List all synced GitHub projects with pagination support |
/sync | POSTREST | Trigger a manual sync of your GitHub repositories |
/projects/:id | GETREST | Get detailed metadata for a specific project |
query { projects } | QUERYGraphQL | GraphQL: fetch all projects with customizable fields |
mutation { sync } | MUTATIONGraphQL | GraphQL: trigger a sync operation |
Authentication
Secure your API requests using API keys for authentication.
API Key Format
Gitsink API keys follow a specific format for security and traceability:
- Format:
gsk_live_xxxxxxxxxx
for production orgsk_test_xxxxxxxxxx
for testing - Security: Store your API keys securely and never expose them in client-side code
- Rotation: You can rotate your API keys at any time from the dashboard
Authentication Header
Include this header in all API requests
Authorization: Bearer YOUR_API_KEY
All API requests must include your API key in the Authorization header as a Bearer token.
Try it live in our API sandbox
Test API calls, explore responses, and build your integration in our interactive sandbox.