Skip to content

API and webhooks

Connecting to the REST API

Address and version, the OpenAPI document, creating a client, getting an access token, scopes and call limits.

Last updated:

Address and version

Every journal has its own API; its address is the journal's primary address followed by /api/v1, for example https://journal.example.org/api/v1. The version is in the address. Changes within v1 are additive only (new endpoints, new optional parameters, new fields); clients must ignore fields they do not know. A breaking change comes as /api/v2, and v1 stays available for at least 12 months.

The OpenAPI 3.1 document is at /api/v1/openapi.json and is public. The /developers page on the journal's site (API for developers) shows the endpoint table generated from the same document, the authentication steps, the limits and the errors.

Creating a client

On the API page in the panel's Integrations group, under New client, enter a Name, choose the Scopes and set the limits: Calls per minute at most (120 by default) and Daily quota (10,000 by default). Create the client gives the client id and secret. The secret is shown once; copy it before you leave the page.

  • Make a new secret issues a new secret and invalidates all of the client's tokens at once.
  • Revoke the client closes it for good; the call record stays.
  • A client's name, scopes and limits cannot be changed after it is created; open a new client if needed.

Recent calls lists the last 50 calls.

The access token

The token comes from the OAuth 2.0 client credentials flow. The request is form-encoded; the credentials go either in HTTP Basic or in the body, not both.

curl -d "grant_type=client_credentials" -d "scope=articles:read" -d "client_id=$CLIENT_ID" -d "client_secret=$CLIENT_SECRET" https://journal.example.org/api/v1/oauth/token

The response contains a Bearer token valid for one hour. Send it in the Authorization header of later requests:

curl -H "Authorization: Bearer jat_..." "https://journal.example.org/api/v1/articles?q=dunes&limit=20"

Scopes

  • articles:read: the journal's details and what its site shows: issues, published articles with their citations and usage, sections, article types, announcements, collections, boards and the policies in force.
  • submissions:read: submission numbers, states, dates and decisions. Titles, people, files, reviews and notes are never given.
  • stats:read: the journal's usage by month (as COUNTER counts it) and its editorial figures.
  • dois:read: each published article's DOI and where its Crossref or DataCite registration stands.

Without a scope in the request, all of the client's scopes are given. Asking for a scope the client lacks is refused; scopes are never narrowed silently.

Call limits

Each client has a per-minute and a daily limit; the daily one resets at midnight UTC. Responses carry the RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. Over the limit, the response is 429 with Retry-After. Token requests count against the same allowance.

Calling from a browser

Only the OpenAPI document can be read from other sites (CORS). The other endpoints and the token endpoint cannot be called from a browser directly; the API is for server-to-server use. There is no SDK; the document and the /developers page carry curl examples.

A question this page does not answer? Write to us.