Connect a market to your internal system using an API hook.
POST
request to.The Request section describes the body of the POST
request that will be
sent to your API, and the Response section describes the expected response
from your API.Register Endpoint
POST
endpoints, and must be able to accept a JSON body.User create studies
Export to API
This will be visible if API endpoints are registered for the team.
Choose the endpoint
POST
request.Endpoint Response
400
-499
status code, the user will be shown a title, message
and - optionally - a list of reference URLs that help the user diagnose the issue.500
-599
, we will try again for a maximum of 3 times.
The user will be shown a generic error message, referring them to contact their IT support.Register Endpoint
Settings Tab
Navigate to Manage Teams
API Endpoints Section
API Endpoints Section
Register Endpoint Form
Register Endpoint Form
Submit the Form
Endpoint metadata
POST
request to.This can include any path, query parameters, or headers that your API requires.This URL must be accessible from the internet, and must not require any special
authentication or headers to be sent by Forestreet.Variable | Description |
---|---|
user.name | The full name of the user who initiated the export. |
user.email | The email address of the user who initiated the export. |
Content-Type
: always application/json
Idempotency-Key
: a UUID that is unique for each request. Upon error, all
retry requests will use the same Idempotency-Key
.POST
Body to your APIPOST
request to the URL provided in the endpoint registration.
An example body of the POST
request is shown on the right, to illustrate the structure
of the data that will be sent to your API.
fields
selected:
market.id
to query the
Market/Companies endpoint for paginated results.200
, with Content-Type: application/json
in the header, and
a JSON body with the following schema:
redirectUrl
is provided and is not null
, the user will be redirected to that URL
in a new window after 5 seconds.
400
-499
will be considered a failure. Where possible, the response
body should contain a JSON object with the following schema:
500
-599
will be considered an server side exception. The API will try again
immediately upto 3 times using the same Idempotency-Key
.
If that fails, the user will be shown a generic error message, referring them to contact
their IT support.
Content-Type
if
the status code is an Exception.