Skip to content

API Overview

The Pintas.ai API allows developers to integrate with the platform programmatically.

https://pintas.turbospark.my/api

Or your custom domain:

https://your-domain.com/api

Admin API endpoints require session authentication via Better Auth cookies.

POST /api/auth/login
Content-Type: application/json
{
"email": "your@email.com",
"password": "your-password"
}

The response includes session cookies for subsequent requests.

All responses are JSON:

{
"data": { ... },
"error": null
}

Or on error:

{
"data": null,
"error": "Error message"
}
CodeMeaning
200Success
400Bad Request
401Unauthorized
403Forbidden
404Not Found
429Rate Limited
500Server Error
EndpointLimit
/api/auth/login5 per 15 min
/api/auth/signup3 per hour
Other endpoints100 per minute

When rate limited:

{
"error": "Too many requests. Please try again later."
}

No authentication required:

  • Store pages
  • Product listings
  • Cart operations

Session authentication required:

  • /api/admin/*
  • Dashboard data
  • CRUD operations
Terminal window
curl https://pintas.turbospark.my/api/health
Terminal window
curl https://pintas.turbospark.my/yourstore
Terminal window
curl -X POST https://pintas.turbospark.my/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"you@email.com","password":"pass"}'