Trialbee Candidate API (1.0)
Download OpenAPI specification:Download
This public API can be used to roll your own custom self-assessment solution using standard HTML-forms, Wordpress forms or any other custom integration.
This API is documented in OpenAPI format. In addition to standard OpenAPI syntax we use a few vendor extensions.
This API uses a rate limitation. The default limit is 100 submissions per hour. Discuss with your assigned Trialbee Project Manager if you need to increase the limit temporarily.
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
Candidate API requires authentication in order to accept submissions. We currently support an API-key based approach.
Create a new candidate record in Trialbee Honey
path Parameters
credentials required | string <password> Example: B886CCEA-4592-11EE-B632-ACDE48001122 API Token provided by Trialbee. Note that the token might be locked to certain origins. |
Request Body schema: application/json
Submit a single Candidate
object (Candidate) | |
object (CandidatePreferences) | |
object (CandidateConsent) | |
object (SelfAssessment) Answers to self assessment questions is used both for qualifying a candidate into a study and for reporting regarding how individual questions are answered. This block of the API supports different operating modes. | |
object (Attribution) | |
object (ClientInformation) |
Responses
Request samples
- Payload
{- "candidate": {
- "name": "Petro Prokopovych",
- "phoneNumber": "+46701234567",
- "postalCode": "211 40",
- "country": "SE",
- "language": "swe",
- "dateOfBirth": "2023-08-15"
}, - "preferences": {
- "preferredContactHours": "morning",
- "preferredContactWay": "phoneCall",
- "site": "SE-0002"
}, - "consent": {
- "dataConsent": true
}, - "selfAssessment": {
- "eligibility": {
- "status": "not_eligible"
}, - "definition": {
- "questions": [
- {
- "key": "30_years",
- "type": "text",
- "title": "Are you at least 30 years of age?"
}
]
}, - "answers": {
- "30_years": true,
- "diagnosis": true,
- "wheelchair_bedridden": true,
- "stiffness_shaking": 2,
- "levodopa_meds": {
- "Sinemet": true,
- "Rytary": true
}
}
}, - "attribution": {
- "referrer": "patient-advocacy-group-one"
}, - "clientInformation": {
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
- "browserLocales": "en,en-us=0.9,en-gb=0.8,sv-se,sv",
}
}
Response samples
- 201
- 401
- 429
{- "submissionId": "1-654502ef-01c39e98406a093a0ca5c585"
}