# Introduction

This guide walks you through using the OriginStamp API using actual request and response examples. We mainly focus on directly using the REST API via cURL. You can though use any other HTTP client to query the API.

Client Libraries

On top, we offer client libraries for different languages that make using OriginStamp as easy as possible.

# Error Handling

OriginStamp does not use HTTP status codes for error handling. You will only receive HTTP status code errors either if you call an incorrect path, incorrect payload or incorrect request type.

A typical API response looks as follows:

{
  "error_code": 0,
  "error_message": null,
  "data": {}
}

It contains the three properties error_code, error_message and data, where:

  • error_code is 0 if successful, else greater than 0. Please use this field for error handling.
  • error_message is null if successful or contains a human-readable error message otherwise. The error message is dynamic and contains a unique error ID that can be used for better reproduction. If you report an error, please state the error ID to identify your issue quickly on our side.
  • data contains the response data if successful or null otherwise

We wrap our response data within this structure to simplify error handling instead of using HTTP status codes.

# Common errors

Error Code Message Cause
0 Success
3201 You do not have a valid API key. Unknown API key or API key is invalidated.