Skip to main content
The Gcore API Reference allows API requests to be sent directly from the browser. This guide uses the Get profile templates endpoint to demonstrate how to configure a request, send it, and interpret the response.
1

Open the endpoint

In the left sidebar:
  1. Open DDoS Protection.
  2. Open Templates.
  3. Select Get profile templates.
DDoS Protection sidebar with Get profile templates selected
2

Review the request

GET /security/iaas/profile-templates returns the profile templates and does not change the configuration.It requires an Authorization header and sends no body.The cURL block shows the same call as https://api.gcore.com/security/iaas/profile-templates.
GET method, the profile-templates path, and the Try it button
cURL request for profile templates
3

Open Try it

The panel shows the same method and path, and the Send button.
Try it panel with the GET path and the Send button
4

Enter the token

In Authorization, enter apikey, a space, and the API token, replacing 1234_abcdef.Leave accepts_ip_address empty to return every template. true keeps templates that require a protected ip_address per profile, and false keeps templates whose protected addresses are hardcoded.
Authorization field filled with apikey 1234_abcdef
Query Parameters section for accepts_ip_address
5

Send the request

The panel returns a status code and a response body.
6

Read the response

The number beside Response is the status code, and 200 means the request succeeded.The response contains a list of templates, so find the item named universal_v6 and keep its id.Angle brackets mark placeholders, while the response after Send contains the values the API returns.
Response section showing status 200 and application/json
Profile template JSON with id, name, and angle-bracket placeholders