Authentication
The DITBlogs API uses API Keys to authenticate requests. You can view and manage your API keys in your organization's settings dashboard.
All API requests must include an Authorization
header containing your API key. The key should be prefixed with Bearer
(with a space).
Warning
Keep your API keys secret!
Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Header Format
text
Authorization: Bearer YOUR_API_KEY
Example Request
Here is an example of an authenticated request using cURL to fetch your organization's categories.
bash
curl --request GET \
--url 'https://blogs.dishis.tech/api/v1/categories' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'