Use an API key

After you have created an API key, you can call any public endpoint by sending the key in the Authorization header.

The minimum request

Set N24M_API_KEY in your shell to the key you copied when you created it.

curl --request GET \
  --url 'https://api.not24get.me/api/v1/me' \
  --header "Authorization: Bearer ${N24M_API_KEY}"

A successful response returns your account profile as JSON. If the key is invalid or revoked, the response is 401 with error.code = "unauthorized".

Workspace-scoped requests

Most operations work inside a workspace. For those, add the X-Workspace-ID header:

curl --request POST \
  --url 'https://api.not24get.me/api/v1/bookmarks' \
  --header "Authorization: Bearer ${N24M_API_KEY}" \
  --header 'X-Workspace-ID: YOUR_WORKSPACE_ID' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://example.com",
    "title": "Example"
  }'

You can find a workspace's ID under Workspace settings → General.

Try it from the browser

Every endpoint in the API reference has a Try it panel. Set your API key in the header (top right of the docs) and the panel will issue real requests against your account.

What's next