Skip to main content
GET
/
fastedge
/
v1
/
template
/
{template_id}
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
template = client.fastedge.templates.get(
    0,
)
print(template.binary_id)
{
  "binary_id": 12345,
  "name": "api-gateway-template",
  "api_type": "<string>",
  "owned": true,
  "params": [
    {
      "name": "api_key",
      "data_type": "string",
      "mandatory": true,
      "descr": "API key for external service authentication",
      "metadata": "<string>"
    }
  ],
  "short_descr": "HTTP API gateway with authentication",
  "long_descr": "Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities."
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

template_id
integer<int64>
required

Unique identifier of the template to retrieve

Response

Returns complete template configuration and metadata

binary_id
integer<int64>
required

ID of the WebAssembly binary to use for this template

Example:

12345

name
string
required

Unique name for the template (used for identification and searching)

Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9_ -]*$
Example:

"api-gateway-template"

api_type
string
required

Wasm API type

owned
boolean
required

Is the template owned by user?

params
object[]
required

Parameters

short_descr
string

Brief one-line description displayed in template listings

Maximum string length: 255
Example:

"HTTP API gateway with authentication"

long_descr
string

Detailed markdown description explaining template features and usage

Maximum string length: 4096
Example:

"Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities."