API Documentation
Learn how to integrate PromptHub into your applications
Authentication
Learn how to authenticate with the PromptHub API
To use the PromptHub API, you need to authenticate using an API key. You can generate an API key in your account settings.
// Example: Including your API key in the request headers
fetch('https://api.prompthub.example.com/v1/prompts', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
})