> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.brevo.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.brevo.com/_mcp/server.

# Get the fields of a trigger or step type

GET https://api.brevo.com/v3/automation/catalog/{type}/schema

Returns the JSON Schema of one trigger type or step type listed by `GET /automation/catalog`: its fields, which ones are required and their allowed values.

For a trigger, the fields go next to `type` in the trigger object. For a step, they go in an object named after the step type, for example `{"id": "mail", "type": "send_email", "send_email": {"template_id": 12}, "next": null}`.

A field with `x-lookup` takes an ID from another resource. The value names that lookup: `lists_get_lists` is `GET /contacts/lists`, `segments_get_segments` is `GET /contacts/segments`, `attributes_get_attributes` is `GET /contacts/attributes`, `templates_get_smtp_templates` is `GET /smtp/templates`, `transac_templates_get_sms_templates` is `GET /transactionalSMS/templates`, `senders_get_senders` is `GET /senders` and `automation_list_workflows` is `GET /automation/workflows`.

Reference: https://developers.brevo.com/reference/get-automation-step-schema

## Authentication

- `api-key` header (required) — The API key should be passed in the request headers as `api-key` for authentication.
- `Authorization` header (bearer token, required) — OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app's client_id/client_secret for a short-lived Bearer token.

## Request

### Path parameters

- `type` (string, required) — A trigger type or step type, exactly as listed by `GET /automation/catalog` (for example `send_email`, `start_another_workflow`, `go_to_step`, `percentage_split`). A type the catalog does not list is answered with 404.

## Response

### 200

Schema of the type

- `title` (string, optional) — The type name
- `description` (string, optional) — What the trigger or step does
- `x-kind` (enum, optional) — trigger or step
  - Allowed values: `trigger`, `step`
- `type` (string, optional) — Always object
- `properties` (map from string to any, optional) — The fields of the trigger or step object, as JSON Schema
- `required` (list of string, optional) — Fields that must be sent
- `additionalProperties` (boolean, optional) — Always false. Unknown fields are refused.

## Errors

### 401 Unauthorized Error

Authentication failed

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 403 Forbidden Error

The API key or OAuth token is not allowed to read automations: the OAuth token lacks the `automation:read` scope, or the API key is restricted.

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

### 404 Not Found Error

Unknown trigger or step type

- `message` (string, required) — Readable message associated to the failure
- `code` (string, optional) — Error code displayed in case of a failure

## Examples

**Response**

```json
{
  "title": "send_email",
  "description": "Sends an email. The template is copied for this automation, so later edits to the source template do not change it.",
  "x-kind": "step",
  "type": "object",
  "properties": {
    "id": {
      "pattern": "^[A-Za-z0-9_-]{1,32}$",
      "type": "string"
    },
    "next": {
      "type": [
        "string",
        "null"
      ]
    },
    "send_email": {
      "additionalProperties": false,
      "properties": {
        "template_id": {
          "minimum": 1,
          "type": "integer",
          "x-lookup": "`GET /smtp/templates`"
        }
      },
      "required": [
        "template_id"
      ],
      "type": "object"
    },
    "type": {
      "const": "send_email",
      "type": "string"
    }
  },
  "required": [
    "type",
    "id",
    "send_email",
    "next"
  ],
  "additionalProperties": false
}
```

**SDK Code**

```python response
import requests

url = "https://api.brevo.com/v3/automation/catalog/type/schema"

headers = {"api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript response
const url = 'https://api.brevo.com/v3/automation/catalog/type/schema';
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go response
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.brevo.com/v3/automation/catalog/type/schema"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("api-key", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby response
require 'uri'
require 'net/http'

url = URI("https://api.brevo.com/v3/automation/catalog/type/schema")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
```

```java response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.brevo.com/v3/automation/catalog/type/schema")
  .header("api-key", "<api-key>")
  .asString();
```

```php response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.brevo.com/v3/automation/catalog/type/schema', [
  'headers' => [
    'api-key' => '<api-key>',
  ],
]);

echo $response->getBody();
```

```csharp response
using RestSharp;

var client = new RestClient("https://api.brevo.com/v3/automation/catalog/type/schema");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<api-key>");
IRestResponse response = client.Execute(request);
```

```swift response
import Foundation

let headers = ["api-key": "<api-key>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.brevo.com/v3/automation/catalog/type/schema")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```