---
updatedAt: 2026-07-02T10:38:05.000Z
agentTools:
  projectIndex: https://developer.2hire.io/llms.txt
---

# Send a test webhook to a custom URL

Test a webhook

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "INTEGRATION TEST",
    "description": "2HireAsAdapter IT API lets you test some interaction",
    "contact": {
      "name": "2hire",
      "email": "info@2hire.io",
      "url": "https://2hire.io"
    },
    "license": {
      "name": "License Name",
      "url": "http://example.com/license-url"
    }
  },
  "servers": [
    {
      "url": "https://integration.adapter.2hire.io"
    }
  ],
  "tags": [
    {
      "name": "Webhooks",
      "description": "Simulate sending a signal update"
    }
  ],
  "paths": {
    "/webhooks/{signal}": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "Bearer": []
          }
        ],
        "summary": "Send a test webhook to a custom URL",
        "operationId": "webhook",
        "description": "Test a webhook",
        "parameters": [
          {
            "name": "signal",
            "in": "path",
            "description": "Name of the  generic signal",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "autonomy_percentage",
                "autonomy_meters",
                "distance_covered",
                "online"
              ],
              "default": "position"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "secret"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "URL to receive webhooks"
                  },
                  "secret": {
                    "type": "string",
                    "description": "Secret used to generate the webhook signature"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessWebhookResponse"
          },
          "401": {
            "$ref": "#/components/responses/AuthenticationError"
          },
          "5XX": {
            "$ref": "#/components/responses/InternalErrorWebhookResponse"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "SuccessWebhookResponse": {
        "description": "Success Webhook Response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SuccessWebhookResponse"
            },
            "examples": {
              "success response": {
                "summary": "Success Response",
                "value": {
                  "success": true,
                  "response": {
                    "statusCode": 200,
                    "body": ""
                  },
                  "timings": {
                    "start": 1607363000012,
                    "socket": 1607363000012,
                    "lookup": 1607363000013,
                    "connect": 1607363000019,
                    "secureConnect": 1607363000027,
                    "upload": 1607363000027,
                    "response": 1607363000047,
                    "end": 1607363000048,
                    "phases": {
                      "wait": 0,
                      "dns": 1,
                      "tcp": 6,
                      "tls": 8,
                      "request": 0,
                      "firstByte": 20,
                      "download": 1,
                      "total": 36
                    }
                  }
                }
              }
            }
          }
        }
      },
      "AuthenticationError": {
        "description": "Authentication Error Response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/AuthenticationError"
            },
            "examples": {
              "Token expired": {
                "summary": "Token Expired",
                "value": {
                  "code": "AUTHENTICATION_ERROR",
                  "details": {
                    "cause": "TOKEN_EXPIRED"
                  },
                  "errorId": "21127d29-1587-4cc7-92c6-d74b98497e56"
                }
              }
            }
          }
        }
      },
      "InternalErrorWebhookResponse": {
        "description": "Error Webhook Response Schema",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorWebhookResponse"
            },
            "examples": {
              "Internal Error": {
                "value": {
                  "success": false,
                  "error": {
                    "name": "INTERNAL_ERROR",
                    "code": "INTERNAL_ERROR"
                  },
                  "timings": {
                    "start": 1607363000012,
                    "socket": 1607363000012,
                    "lookup": 1607363000013,
                    "connect": 1607363000019,
                    "secureConnect": 1607363000027,
                    "upload": 1607363000027,
                    "response": 1607363000047,
                    "end": 1607363000048,
                    "phases": {
                      "wait": 0,
                      "dns": 1,
                      "tcp": 6,
                      "tls": 8,
                      "request": 0,
                      "firstByte": 20,
                      "download": 1,
                      "total": 36
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "SuccessWebhookResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicate whether the webhook was sent successfully"
          },
          "timings": {
            "type": "object"
          },
          "response": {
            "type": "object",
            "properties": {
              "statusCode": {
                "type": "integer"
              },
              "body": {
                "type": "string",
                "description": "Response body of the URL. When `contentEncoding` is set it holds the raw bytes of the encoded body, in base64"
              },
              "contentEncoding": {
                "type": "string",
                "description": "Content encoding of the response body (e.g. `gzip`, `br`), set only when the URL answered with an encoded body. The body is not decoded"
              }
            }
          }
        }
      },
      "ErrorWebhookResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicate whether the webhook was sent successfully"
          },
          "timings": {
            "type": "object"
          },
          "error": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "code": {
                "type": "string"
              }
            }
          }
        }
      },
      "AuthenticationError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Code of the error",
            "enum": [
              "AUTHENTICATION_ERROR"
            ]
          },
          "details": {
            "type": "object",
            "properties": {
              "cause": {
                "type": "string",
                "description": "Specific cause of the error",
                "enum": [
                  "HEADER_MALFORMED",
                  "HEADER_MISSING",
                  "TOKEN_AUDIENCE_NOT_ALLOWED",
                  "TOKEN_CREATION_FAILED",
                  "TOKEN_EXPIRED",
                  "TOKEN_KEY_ERROR",
                  "TOKEN_SIGN_ERROR",
                  "TOKEN_VERIFICATION_FAILED",
                  "GET_THIRD_PARTY_TOKEN_FAILED"
                ]
              }
            }
          },
          "errorId": {
            "type": "string",
            "description": "uuid generated in order to track logs"
          }
        }
      }
    }
  }
}
```