Authentication API
Learn how to authenticate requests using OAuth 2.0 and API keys.
🦊GitLab1 min readUpdated Jan 14567 views
apiauthenticationsecurity
Authentication API
Our API supports two authentication methods: OAuth 2.0 and API keys.
OAuth 2.0
const response = await fetch('/oauth/token', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
grant_type: 'client_credentials',
client_id: 'your_client_id',
client_secret: 'your_client_secret'
})
});
API Keys
Include your API key in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" https://api.example.com/v1/users
GlossaryAI Detected
Technical terms found in this document
12 terms found • AI-detected from document content
Related Documents
REST API Overview
Introduction to our RESTful API architecture and best practices.
🦊GitLabJan 14
Rate Limiting
Understanding API rate limits and how to handle rate limit errors.
🦊GitLabJan 13
System Architecture Overview
High-level overview of our microservices architecture and infrastructure.
📝OutlineJan 14
Database Schema
Complete database schema documentation with entity relationships.
📝OutlineJan 12