Testing the Shoreline Simulation API Using Postman
Overview
The Shoreline Simulation API allows customers to create and monitor simulations of wind‑farm construction and maintenance. Before you can call any endpoints, you must authenticate with an OAuth 2.0 token.
Step 1 – Gather prerequisites
-
Obtain a client ID and client secret from your Shoreline account in the team settings under API clients. These credentials are needed for OAuth 2.0 authentication.
-
Install Postman from postman.com or use their web tool.
-
Note the API base URL, which is
https://app.shoreline.no/api.
Step 2 – Request an access token
-
Open Postman and create a new request.
-
Set the method to POST and the URL to
https://app.shoreline.no/api/oauth2/token. -
On the Body tab, choose “x‑www‑form‑urlencoded” and add these fields:
-
grant_type=client_credentials -
client_id= your client ID -
client_secret= your client secret -
(Optional)
scopeif Shoreline requires one.
-
-
Send the request. The response returns an
access_token. Copy this token for later use.
Step 3 – Set up Postman
You can import the API specification or create the requests manually.
-
Importing the specification
-
In Postman, click Import, then Link.
-
Enter
https://app.shoreline.no/api/v3/api-docs(the OpenAPI specification used by the Swagger UI). -
Postman will generate a collection of endpoints. Edit the collection settings and add two variables:
baseUrl = https://app.shoreline.no/apiandaccessToken = <your token>. -
Set the Authorization type to Bearer Token and use
as the value.
-
-
Creating requests manually
-
Create a new collection called “Shoreline Simulation API.”
-
Add variables
baseUrl = https://app.shoreline.no/apiandaccessTokencontaining your token. -
For each request below, set Authorization to Bearer Token and use
.
-
Step 4 – Submit a simulation request
-
Create a POST request at
/simulations. -
Set the body type to raw JSON. Include required fields:
{
"runs": 1,
"caseId": 123,
"startDate": "2026-04-01",
"durationInYears": 1,
"case": {
"personnelList": "...",
"vesselList": "...",
"windFarms": "..."
}
}The body must include the number of runs, a case ID, the start date, and the duration in years; the optional
caseobject lets you specify resources. -
Send the request. The response returns a
requestId. Save this value for the next steps.
Step 5 – Check simulation status
-
Create a GET request at
/simulations/, replacingwith the ID from Step 4. -
Send the request to see the progress of your simulation. The response lists each run with its number, status, progress, and the outputs available for download.
Step 6 – Download an output file
-
Identify the
runNumberand available output names from the previous response. -
Create a GET request at
/simulations//runs//outputs/. Replace the placeholders with your request ID, run number (starting at 1) and the output name (such as “excel”). -
Send the request. If the file exists, Postman will download or prompt you to save it.
Step 7 – Clone an existing case
-
To copy a case, create a GET request at
/simulations/copy/?startDate=YYYY-MM-DD&durationInYears=n. -
Replace
with the ID of the case you want to copy, and setstartDateanddurationInYearsaccordingly. -
Send the request. The response contains the cloned case details, including personnel, vessels and wind‑farm lists. A 404 response means the case could not be found.
Additional tips
-
Store variables (
baseUrl,accessToken,requestId) in a Postman environment to reuse them easily. -
The
runsvalue must be between 1 and 500, anddurationInYearsmust be between 1 and 30. -
Repeat Step 2 if the token expires.
-
Consult the Swagger UI for detailed schema definitions, parameter ranges and example payloads.
This tutorial should help users authenticate, set up Postman, and exercise each endpoint of the Shoreline Simulation API.