Getting Started

Everything you need to integrate with the Artsays Artwork Verification API.

1

Get Your API Key

Request an API key from your Settings page. After admin approval, you'll receive either a sandbox or production key.

Sandbox Key
sk_sandbox_ab3f...c8d2

Returns mock/test data. Safe for development.

Production Key
sk_prod_7e9a...f1b3

Hits real data. Use only in production apps.

2

Authenticate Your Requests

Include your API key in every request using one of these methods:

Recommendedx-api-key Header
curl -H "x-api-key: sk_prod_your_key" https://ai.artsays.in/api/v1/verify
AlternativeQuery Parameter
curl "https://ai.artsays.in/api/v1/verify?api_key=sk_prod_your_key"
3

Base URL

https://ai.artsays.in/api/
4

Make Your First API Call

cURL Example

curl -X GET "https://ai.artsays.in/api/v1/verify" \
  -H "x-api-key: sk_prod_your_key_here"

Postman Setup

  1. 1Create a new GET request to https://ai.artsays.in/api/v1/verify
  2. 2Go to Headers tab and add x-api-key with your key value
  3. 3Click Send and verify you receive a JSON response with success: true
5

Understand the Response

Success (200)

{
  "success": true,
  "data": { ... }
}

Error (4xx)

{
  "success": false,
  "error": "Invalid API key."
}

Sandbox note: Sandbox responses include extra fields: "test": true and "environment": "sandbox"

Common Mistakes

ProblemCauseFix
Missing API Key (401)No x-api-key header or query paramAdd your key to every request
Invalid API Key (401)Key is wrong, rotated, or revokedCheck key in Settings; request new key if needed
Endpoint Not Allowed (403)Key not authorized for this endpointContact admin to update allowed endpoints
Rate Limit (429)Exceeded 60 req/min (or custom limit)Slow down requests; check Retry-After header
Sandbox returns test dataUsing sk_sandbox_ keySwitch to sk_prod_ key for real data

API Scopes

Public Endpoints

No authentication required

API Key Endpoints

Requires x-api-key header

JWT Authenticated Endpoints

Requires Bearer token from login

Rate Limiting

Default: 60 requests/minute per API key (sliding window). Exceeding returns 429 with a Retry-After header. Limits are configurable per client by admin.

All Endpoints

MethodPathScope
POST/api/v1/verifyAPI Key
GET/api/v1/verifyAPI Key
POST/api/verify-stepsJWT
POST/api/artworksJWT
GET/api/artworksJWT
GET/api/artworks/:idJWT
POST/api/artworks/:idJWT
DELETE/api/artworks/:idJWT
GET/api/statsPublic
POST/api/auth/signupPublic
POST/api/auth/loginPublic
GET/api/auth/meJWT
GET/api/profileJWT
PUT/api/profileJWT
PUT/api/profile/passwordJWT
POST/api/profile/avatarJWT
POST/api/trainingJWT
GET/api/trainingJWT
POST/api/training/uploadJWT
GET/api/training/modelsJWT
GET/api/training/jobsJWT
POST/api/training/jobsJWT
GET/api/admin/api-clientsJWT
POST/api/admin/api-clientsJWT
POST/api/user/request-api-keyJWT
GET/api/user/request-api-keyJWT