NeuralSnapNeuralSnap/Docs

API Reference

The NeuralSnap REST API lets you create, read, update, and delete Neural Snapshots, run semantic search across your brain, crystallise raw text into structured knowledge, and check your account usage — all from any language or platform that speaks HTTP.

Base URL

All API requests are made to the following base URL:

https://neuralsnap.ai/api/v1

Authentication

Every request must include a Bearer token in the Authorization header. You can generate API keys from your dashboard.

bash
Authorization: Bearer ns_live_abc123...

Content Type

All request and response bodies are JSON. Set the Content-Type header accordingly:

bash
Content-Type: application/json

Rate Limits

Rate limits are enforced per API key on a rolling one-hour window.

PropertyTypeDescription
Starterplan100 requests per hour
Proplan1,000 requests per hour
Businessplan10,000 requests per hour

When you exceed the limit, the API returns 429 Too Many Requests. Check the X-RateLimit-Remaining response header to monitor your usage.

Error Format

All error responses follow a consistent JSON structure:

json
{
"error": "Human-readable error message",
"code": "OPTIONAL_ERROR_CODE"
}

HTTP Status Codes

The API uses standard HTTP status codes to indicate success or failure:

PropertyTypeDescription
200OKRequest succeeded. Response body contains the requested data.
201CreatedResource created successfully. Returned by POST endpoints.
400Bad RequestInvalid request body or missing required parameters.
401UnauthorizedMissing or invalid API key.
403ForbiddenValid key but insufficient permissions for this action.
404Not FoundThe requested resource does not exist.
429Too Many RequestsRate limit exceeded. Back off and retry after the reset window.
500Internal Server ErrorSomething went wrong on our end. Contact support if it persists.

Test API Keys

All code examples in this documentation use test API keys (e.g. ns_test_abc123). Replace them with your own key from the dashboard before making real requests.