This API is documented in OpenAPI format. In addition to standard OpenAPI syntax we use a few vendor extensions.
To ensure system stability and fair usage, the API enforces the following limits:
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with the W3C spec. Responses include CORS headers to allow browser-based access. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
Patient Registry API requires authentication in order to accept submissions. We currently support two authentication methods:
Creates a new lead record in Honey.
| credential required | string <password> Example: credential=B886CCEA-4592-11EE-B632-ACDE48001122 API Token provided by Trialbee. Note that the token might be locked to certain origins. |
Data needed to create a new lead.
| tenantId required | string (TenantId) The tenant identifier to which the lead is connected. | ||||||
| email required | string <email> (Email) | ||||||
required | object (Consent) | ||||||
| |||||||
| gender required | string (Gender) Enum: "female" "male" "other" "unknown" | ||||||
| countryCode | string (CountryCode) = 2 characters | ||||||
| locale | string (Locale) | ||||||
| postalCode | string (PostalCode) | ||||||
{- "tenantId": "tenant-12345",
- "email": "user@example.com",
- "consent": {
- "timestamp": "2026-10-01T12:00:00Z",
- "text": "I consent to the terms and conditions.",
}, - "gender": "female",
- "countryCode": "US",
- "locale": "en-US",
- "postalCode": "12345"
}{- "statusCode": 201,
- "message": "Successful registration",
- "person": {
- "email": "user@example.com",
- "phoneNumber": null,
- "postalCode": "12345",
- "therapeuticAreas": null,
- "tenantId": "tenant-12345",
- "consent": {
- "text": "I consent to the terms and conditions.",
- "timestamp": "2026-10-01T12:00:00Z"
}, - "id": "id-12345",
- "createdAt": "2026-02-22T14:03:35.838Z",
- "updatedAt": "2026-02-22T14:03:35.838Z",
- "lastConsent": {
- "text": "I consent to the terms and conditions.",
- "timestamp": "2026-10-01T12:00:00Z",
- "person": {
- "id": "person-12345"
}, - "id": "01234"
}, - "lead": {
- "icdCodes": [ ],
- "countryCode": "US",
- "languageCode": "en",
- "yearOfBirth": null,
- "gender": "female",
- "coordinates": null,
- "id": "lead-12345",
- "createdAt": "2026-01-22T14:03:35.838Z",
- "updatedAt": "2026-01-22T14:03:35.838Z"
}
}
}