Help topics

Limit fields and requests for each API key

Give each API key only the fields it needs, and set how many requests it may make a minute. Both settings are kept per key.

Before you start

  • You need Morphic Pro with an active licence.
  • You need the administrator role. Only administrators manage API keys.
  • You need at least one API key. Create one in Settings > API keys.

Steps

  1. Go to Morphic > Settings.
  2. Select Key permissions.
  3. In the card for a key, under Fields of the model name, select the fields the key may see. Repeat for each model.
  4. In Requests a minute, enter a number. Leave it empty for no limit. The highest value is 100000.
  5. Select Save.

Nothing ticked under a model means the key sees every field it may read. The Save button confirms with "Key permissions saved".

Result

When a key goes over its limit, the API answers HTTP 429. The message reads, for example, "this API key is limited to 60 requests a minute; try again in 12 seconds". The limit counts requests in each one-minute window.