Skip to content

WeTrials DevelopersBuild with WeTrials APIs

Integrate clinical trial search, OAuth authentication, and comprehensive APIs into your applications

Quick Start ​

Labrador Widget Integration ​

Get the clinical trial search widget up and running in minutes:

html
<script src="https://assets.wetrials.com/labrador/v2/index.js"></script>
<script>
  Labrador({
    shadowRoot: document.getElementById('study-finder'),
    shadowModalRoot: document.getElementById('modal-root'),
    env: 'production',
    orgId: 'your-org-id',
    apiKey: 'your-api-key',
  });
</script>

View Full Setup Guide →

OAuth Integration ​

Implement secure authentication with our OAuth 2.0 flow:

javascript
const authUrl = `https://auth.wetrials.com/oauth/authorize?
  client_id=${clientId}&
  redirect_uri=${redirectUri}&
  response_type=code&
  code_challenge=${challenge}&
  code_challenge_method=S256`;

window.location.href = authUrl;

View OAuth Documentation →

Resources ​

Authentication Methods ​

  • API Keys - Simple authentication for public data access
  • OAuth 2.0 - Secure authentication for private data and server-to-server communication

Integration Guides ​

Support ​

Need help? Contact our developer support team: