Overview

The Proxy API allows you to make requests to provider APIs with your integration user’s credentials. You provide a Strata user JWT token and the API request parameters. We inject the user’s credentials and forward the request to the service provider.

Making Proxy API requests

The Strata Proxy API base URL is:
https://proxy.sandbox.connectstrata.com/projects/<project_id>/proxy/<service_provider_id>
To make a Proxy API request:
  • Start with the Strata Proxy API base URL
  • Append the service provider’s API path: /<api_path>
  • Add query parameters if necessary
  • Add a request body if necessary
  • Add a Bearer Authorization header with a signed user JWT token
  • Add a Content-Type header for the content you’re expecting back from the service provider
  • Make the request with the HTTP method you want to invoke on the service provider’s API
A minimal Proxy API request has the following structure:
curl GET "https://proxy.sandbox.connectstrata.com/projects/<project_id>/proxy/<service_provider_id>/<api_path>?exampleparam1=value1&exampleparam2=value2" \
  -H "Authorization: Bearer <user_jwt_token>" \
  -H "Content-Type: application/json"
Here is an example Proxy API request for the Salesforce Query API:
curl -X GET "https://proxy.sandbox.connectstrata.com/projects/<project_id>/proxy/salesforce/services/data/v64.0/query?q=SELECT%20Id,%20Email,%20FirstName,%20LastName,%20Title,%20LastViewedDate,%20Account.Name%20FROM%20Contact" \
  -H "Authorization: Bearer <user_jwt_token>" \
  -H "Content-Type: application/json"