Step 1: Make Your First API Call
Let’s retrieve all articles in your workspace using a GET request:
curl -X GET "https://{your-workspace}.neetokb.com/api/v1/articles" \
-H "X-Api-Key: your-api-key" \
-H "Content-Type: application/json"
Replace your-workspace with your actual workspace subdomain and your-api-key with your generated API key.
Step 2: Understanding the Response
A successful response will look like this JSON format:
{
"articles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "getting-started",
"title": "Getting Started Guide",
"state": "published",
"unique_views_count": 123,
"category": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Tutorials"
}
}
],
"total_count": 123,
"match_count": 123
}
Next Steps
Now that you’ve made your first API call, you can: