Back to all questions

How do I get an API key?

Accounts & Access
api-key
token
jwt

API keys (JWT tokens) are available to registered users:

  1. Sign in to MatCraft
  2. Click your profile avatar in the top right
  3. Select Settings
  4. Go to the API Keys tab
  5. Click Generate New Token
  6. Optionally set an expiration date (default: 30 days)
  7. Copy the token immediately — it is shown only once

Using Your Token

bash
curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.matcraft.ai/api/v1/materials"

Managing Tokens

  • You can have up to 5 active tokens
  • Revoke any token from the API Keys settings page
  • Tokens can be regenerated at any time
  • If you lose a token, revoke it and generate a new one

Related Questions