Skip to content
CrateHelp Centre
Browse guides

On this page

Developers

Build on Crate

What the Crate API and webhooks can do, how access works, and which page to read first.

Reviewed

View as Markdown

On this page

Crate gives you two ways to connect your store to other software. The API lets your code read and change store data. Webhooks let Crate tell your server when something happens. Both are included on every plan.

Most integrations use both. A webhook says "an order was paid", and the API fetches anything else you need.

What you can do

  • Read and update products, variants and collections.
  • Read orders, change an order's email or notes, and cancel an order.
  • Manage customers, customer groups, discounts and coupon codes.
  • Read sales figures from your analytics.
  • Check and activate license keys from your own software.
  • Get a signed request on your server when an order is placed, paid, fulfilled or cancelled.

The API reference lists every resource and the permission it needs.

How access works

You find both tools in Settings, under Developer.

Part What it does
API keys A key proves who is calling. It belongs to one store, has its own permissions, and can expire or be revoked.
Permissions Each key has Read or Write access for each group, such as Products or Orders. A request outside them is refused.
Rate limit Each key can make 120 requests a minute.
Webhooks Endpoints on your server that receive store events, signed with a secret.

Where to start

  1. Follow the API quickstart to create a key and list your products.
  2. Read Authentication, Errors, Pagination and Rate limits before you build anything that runs on its own.
  3. To react to events instead of polling, set up webhooks and verify their signatures.
  4. If you sell software, use the License keys API.

Good habits

  • Create one key per integration and name it after the job, such as "Inventory sync".
  • Give each key the least access it needs.
  • Set an expiry on keys you only need for a project.
  • Check Last used on the API keys page now and then, and revoke keys nobody uses.

Troubleshooting

Next steps

Was this helpful?

Yes No

Still need a hand?

Tell us the task you were trying to complete and the message you saw. Include your store name or order reference when relevant. Keep passwords, API secrets and card details private.

Contact Crate