GitHub Features API
Full documentation for interacting with GitHub Features through its REST and GraphQL APIs.
Quick Start
1. Authentication
Use a personal access token or OAuth2 for API requests.
curl -H "Authorization: Bearer YOUR_TOKEN" https://api.githubfeatures.com/api/v1/user
2. Base URL
All API endpoints are relative to the base URL: https://api.githubfeatures.com/api/v1
GET /repositories
3. Make Requests
Use standard HTTP methods and content types (application/json).
POST /collaborators
{
"username": "example-user"
}
API Endpoints
Authentication
Endpoint: POST /auth/token
Obtain an access token using a client ID and secret.
{
"client_id": "your-client-id",
"client_secret": "your-secret",
"username": "user-identifier"
}
Repository API
Endpoint: GET /repositories
List all repositories for the authenticated user.
Endpoint: POST /repositories
Create a new repository with the specified name and options.
Collaboration
Endpoint: POST /collaborators
Add a collaborator to a specific repository.
Endpoint: GET /repositories/{id}/collaborators
List all collaborators for a specific repository.
Example Requests
Create a Repository
POST /repositories
# cURL Example
curl -u "oauth2:ACCESS_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"name": "my-new-repo",
"description": "A sample repository"
}' \
"https://api.githubfeatures.com/repositories"
Response (201 Created):
{ "id": 12345, "name": "my-new-repo", "html_url": "https://github.com/username/my-new-repo" }
Need More Help?
Need Help Integrating?
Get assistance from our developers or join our community forums to ask questions.