Using the API
Introduction
Get Started with the Pine API
To use the Pine API, you must get an API Key from the Dashboard.
Base URL
All requests are made to the base URL:
Authentication
Authentication requires an Authorization header in the format Bearer YOUR_API_KEY
. Replace YOUR_API_KEY
with your actual API key that begins with “sk-”.
You can get an API Key from the Pine Dashboard.
Response Codes
The Pine API follows conventional HTTP status codes. HTTP status codes are grouped into three main categories for indicating response outcomes:
- 2xx Success Codes: Indicate that the request was received, understood, and processed successfully.
- 4xx Client Error Codes: Show that the issue stems from the user’s request. This could mean the request was malformed (400) or unauthorized (401).
- 5xx Server Error Codes: Indicate problems on the server side, meaning our infrastructure encountered an issue while processing an otherwise valid request. For instance, 500 signals an internal server error, while 503 means the service is temporarily unavailable.
Endpoints
Context Endpoint
Get real-time context for your LLM.