API Reference

API Token

API tokens are required to access the Eraser API. Tokens are provisioned per team and access is limited to paid teams.

How to get an API token

  1. Sign up to Eraser. You will create a team during the sign up process.
  2. Upgrade to the Professional Plan. Learn more about Eraser pricing.
  3. Open team settings.
  1. Select API Token and click on "Generate Token".
  1. Include API token as a bearer token in API request headers. Here is an example:
curl --location --request POST 'https://app.eraser.io/api/render/elements' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
    "text": "Draw a data model for a Twitter clone"
}'