Skip to main content

What is the Sandbox?

The Sandbox provides mock API endpoints that return deterministic test data. Use these endpoints to develop and test your integration without consuming your API quota or waiting for real blockchain queries.
⚠️ SANDBOX: All data returned by sandbox endpoints is mock data for testing purposes only. Do not use sandbox responses for production decisions.

Sandbox vs Production

FeatureSandboxProduction
DataMock/deterministicReal blockchain data
Response timeInstant1-10 seconds
API quotaNot countedCounted
Base URLSameSame
Endpoint prefix/api/v2/sandbox//api/v2/

Available Sandbox Endpoints

EndpointDescription
GET /api/v2/sandbox/score/{address}Mock credit score
GET /api/v2/sandbox/report/{address}Mock credit report

Deterministic Responses

Sandbox responses are deterministic based on the address provided:
  • The same address always returns the same mock data
  • Different addresses return different (but consistent) mock scores
  • This allows you to test various scenarios reliably

When to Use the Sandbox

Development

Build and test your integration without using real API quota

CI/CD Testing

Run automated tests against consistent mock data

Demo Applications

Build demos without depending on real blockchain data

UI Development

Design and test your UI with various score scenarios

Example Workflow

1

Develop with Sandbox

Use sandbox endpoints while building your integration
curl "https://api.credprotocol.com/api/v2/sandbox/score/0x123..." \
  -H "Authorization: Bearer YOUR_API_KEY"
2

Test Edge Cases

Test different addresses to see various score ranges
3

Switch to Production

Simply change /sandbox/ to use production endpoints
curl "https://api.credprotocol.com/api/v2/score/0x123..." \
  -H "Authorization: Bearer YOUR_API_KEY"

Test Addresses

Use these addresses to test specific scenarios:
AddressMock ScoreClassification
0x0000000000000000000000000000000000000001850Excellent
0x0000000000000000000000000000000000000002720Good
0x0000000000000000000000000000000000000003550Fair
0x0000000000000000000000000000000000000004400Low