---
updatedAt: 2025-09-17T22:56:09.000Z
agentTools:
  projectIndex: https://developer.maximizer.com/llms.txt
---

# Create a target

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "Webhooks API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.maximizer.com/webhooks"
    }
  ],
  "paths": {
    "/v1/targets": {
      "post": {
        "tags": [
          "Targets"
        ],
        "summary": "Create a target",
        "description": "",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/TargetRequestDto"
              },
              "examples": {
                "Syntax Example": {
                  "value": {
                    "Name": "Target Name",
                    "Endpoint": {
                      "Url": "https://my-target-url.acme.com/webhook",
                      "Headers": [
                        {
                          "Key": "Authorization",
                          "Value": "Bearer 1234567890"
                        },
                        {
                          "Key": "AnotherRelevantHeader",
                          "Value": "Header Value"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TargetRequestDto"
              },
              "examples": {
                "Syntax Example": {
                  "value": {
                    "Name": "Target Name",
                    "Endpoint": {
                      "Url": "https://my-target-url.acme.com/webhook",
                      "Headers": [
                        {
                          "Key": "Authorization",
                          "Value": "Bearer 1234567890"
                        },
                        {
                          "Key": "AnotherRelevantHeader",
                          "Value": "Header Value"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TargetRequestDto"
              },
              "examples": {
                "Syntax Example": {
                  "value": {
                    "Name": "Target Name",
                    "Endpoint": {
                      "Url": "https://my-target-url.acme.com/webhook",
                      "Headers": [
                        {
                          "Key": "Authorization",
                          "Value": "Bearer 1234567890"
                        },
                        {
                          "Key": "AnotherRelevantHeader",
                          "Value": "Header Value"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TargetRequestDto"
              },
              "examples": {
                "Syntax Example": {
                  "value": {
                    "Name": "Target Name",
                    "Endpoint": {
                      "Url": "https://my-target-url.acme.com/webhook",
                      "Headers": [
                        {
                          "Key": "Authorization",
                          "Value": "Bearer 1234567890"
                        },
                        {
                          "Key": "AnotherRelevantHeader",
                          "Value": "Header Value"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TargetResponseDtoSingleEntryResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Header": {
        "type": "object",
        "properties": {
          "Key": {
            "type": "string",
            "nullable": true
          },
          "Value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "Type": {
            "type": "string",
            "nullable": true
          },
          "Title": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "Detail": {
            "type": "string",
            "nullable": true
          },
          "Instance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TargetRequestDto": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "nullable": true
          },
          "Endpoint": {
            "$ref": "#/components/schemas/TargetWebHookEndpointDto"
          }
        },
        "additionalProperties": false
      },
      "TargetResponseDto": {
        "type": "object",
        "properties": {
          "TargetId": {
            "type": "string",
            "format": "uuid"
          },
          "Name": {
            "type": "string",
            "nullable": true
          },
          "Enabled": {
            "type": "boolean"
          },
          "Endpoint": {
            "$ref": "#/components/schemas/TargetWebHookEndpointDto"
          }
        },
        "additionalProperties": false
      },
      "TargetResponseDtoSingleEntryItemResponseDto": {
        "type": "object",
        "properties": {
          "Item": {
            "$ref": "#/components/schemas/TargetResponseDto"
          }
        },
        "additionalProperties": false
      },
      "TargetResponseDtoSingleEntryResponseDto": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/TargetResponseDtoSingleEntryItemResponseDto"
          }
        },
        "additionalProperties": false
      },
      "TargetWebHookEndpointDto": {
        "type": "object",
        "properties": {
          "Url": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "Headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Header"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Authorization header",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}
```