API overview

Base URL, credentials, IDs, pagination and response conventions shared by every endpoint of the onefold HTTP API.

The onefold API is HTTP and JSON. The endpoint pages in this section are generated from the API's published OpenAPI schema. This page covers what applies to all of them.

Base URL

https://onefold.eitozx.com/api/v1/

The OAuth 2.0 and OpenID Connect endpoints are not under this path. See OAuth and OIDC endpoints.

What is in the API

EndpointsCredentialReference
GET /api/v1/userinfo/A user's access tokenUserinfo
/api/v1/manage/users/…Your application's API key, or your organization's with the Onefold-Application headerUsers
/api/v1/manage/…Your application's API key, or your organization's with the Onefold-Application headerApplication
GET /api/v1/plans/NonePlans
/api/v1/oauth/signup-fields/None. Called by the hosted sign-up step, not by your server.Hosted sign-up step

Both credentials are sent as Authorization: Bearer …. They are not interchangeable. See API authentication.

The API reads. Its one write is your own user metadata. Applications, webhooks and keys are managed in the developer portal.

Requests and responses

  • Request and response bodies are JSON, encoded as UTF-8.
  • Send Content-Type: application/json with a body.
  • Timestamps are ISO 8601, in UTC.

The token endpoint is the exception: it takes a form-encoded body. See Token exchange.

Request IDs

Every response carries an X-Request-ID header. If your request sends an X-Request-ID of 8 to 64 letters, digits, _ or -, that value is preserved and echoed. Anything else is replaced.

IDs are strings

Every ID is a 64-bit number sent as a JSON string, for example "id": "7301234567890123456". Keep it a string. Parsing it as a JavaScript number changes it without raising an error.

Lists

List endpoints return one page of results with links to its neighbours:

{
  "count": 42,
  "next": "https://onefold.eitozx.com/api/v1/manage/users/?page=2",
  "previous": null,
  "results": []
}

Follow next until it is null. Treat the URL as opaque instead of building it yourself.

Errors and rate limits

Every error has a stable code. See Errors. Every application has a per-minute request budget. See Rate limits.

The schema

The OpenAPI document these pages are generated from is served at https://onefold.eitozx.com/api/schema/.

On this page