Skip to main content

As part of service enablement for BT Wholesale services, customers are required to submit details for an OAuth server, credentials and a delivery URL for Webhook notifications. This guide explains the valid OAuth URL pattern, credentials and webhook delivery URL for webhook notifications for the following BT Wholesale services:

  • Broadband One
  • Complete Mobile services

 


1. OAuth token request

BT Wholesale only support OAuth 2.0 Client Credentials using:

  • HTTP POST
  • Content-Type: application/x-www-form-urlencoded
  • Parameters in the request body
  • No query-string parameters

 

Supported format

  • POST /ee/auth
  • Content-Type: application/x-www-form-urlencoded
  • client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=client_credentials

To generate your unique API credentials (Client ID and Client Secret), you have to create an app. 

 

Key rules

  • Use application/x-www-form-urlencoded only
  • Send credentials in the POST body
  • Do not put OAuth parameters in the URL
  • Do not use JSON (application/json)
  • Do not submit OAuth URLs via email-safe links (e.g. SafeLinks)
  • API Gateway will not send ‘Scope

Requests that do not follow this format will risk delays in account setup.

 


2. OAuth token usage

If the call from the BT Wholesale Gateway to your OAuth service succeeds, BTWS will receive an access token.

  • The token will be used as received
  • The token will be sent in webhook calls as an Authorization header

Typical pattern: Authorization: Bearer 

 


3. Webhook delivery URL requirements

Your webhook endpoint must meet all of the following. 

 

Mandatory requirements

  • Publicly accessible FQDN (Fully Qualified Domain Name)
  • HTTPS
  • Accepts HTTP POST requests
  • Not behind firewalls, VPNs, or IP allowlists
  • Reachable from the public internet at all times 

 

Not supported

  • Internal-only URLs
  • Private IP ranges
  • URLs requiring mutual TLS or network whitelisting
  • GET-only endpoints 

 


4. Webhook request behaviour

  • Webhooks are delivered via HTTP POST
  • The OAuth access token is included with each request
  • Your endpoint must:
    • Return a valid HTTP response
    • Respond within expected timeout limits
    • Handle retries safely (idempotency recommended) 

 


5. Common causes of failure

  • Sending OAuth parameters in the URL instead of the body
  • Using application/json for the token request
  • Submitting URLs rewritten by email security tools
  • Webhook URL not publicly reachable
  • Firewalls blocking inbound POST requests
  • Any kind of embedded authentication in the URL, e.g. for forwarding of the Notification
Back to top