REST API

Authentication

Authenticate each REST API request with your user email and an API key.

On this page

Prepare your account

  1. Create a separate user account (opens in a new tab) for your integration.
  2. Generate an API key (opens in a new tab) in the WBS account portal.
  3. Arrange the appropriate site permissions for that user on each site it needs to access.

On the sign-up page, enter the email address for your integration account and select “Send sign up verification email”. Follow the link in the email to continue registration.

Use HTTP Basic Authentication

Basic Authentication credentials
CredentialValue
UsernameThe API user’s email address
PasswordThe generated API key

Include authentication with every HTTP request. Your HTTP client can build the Basic Authentication header from these credentials.

Authentication header format HTTP
Authorization: Basic <base64(email:api_key)>

Make a request with cURL

Set PLEXUS_EMAIL and PLEXUS_API_KEY in your local environment. This example makes an authenticated GET request to https://api.plexus.net/api/v1/me.

Authenticated GET request Shell
curl --request GET \
  --user "$PLEXUS_EMAIL:$PLEXUS_API_KEY" \
  --header "Content-Type: application/json" \
  "https://api.plexus.net/api/v1/me"

Keep API credentials in your server environment. Do not place them in public website code or shared examples.

Check site permissions

Authentication identifies the API user. Site roles determine what that user can read or change.

Need help with your integration? Contact the Plexus team.