---
updatedAt: 2026-05-26T21:31:12.000Z
agentTools:
  projectIndex: https://docs.astrada.co/llms.txt
---

# Retrieve webhook

Returns detailed information about a specific webhook by its identifier, including its configuration and event subscription details.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Astrada API",
    "version": "2024-02-28",
    "contact": {
      "email": "developer@astrada.co"
    },
    "description": "Welcome to our API Reference. 👋\n"
  },
  "servers": [
    {
      "url": "https://api.astrada.co"
    }
  ],
  "tags": [
    {
      "name": "webhooks",
      "description": "Manage webhooks"
    }
  ],
  "externalDocs": {
    "description": "Find out more about Astrada API.",
    "url": "https://docs.astrada.co/reference"
  },
  "paths": {
    "/webhooks/{webhookId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/webhook-id"
        }
      ],
      "get": {
        "tags": [
          "webhooks"
        ],
        "summary": "Retrieve webhook",
        "description": "Returns detailed information about a specific webhook by its identifier, including its configuration and event subscription details.",
        "operationId": "getWebhook",
        "security": [
          {
            "main-auth": [
              "webhooks:read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/hal+json": {
                "schema": {
                  "$ref": "#/components/schemas/webhook"
                },
                "examples": {
                  "Example Get Webhook Response": {
                    "$ref": "#/components/examples/webhook"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/bad-request"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/not-found"
          },
          "500": {
            "$ref": "#/components/responses/server-error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "main-auth": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://api.astrada.co/auth/realms/{accountId}/protocol/openid-connect/token",
            "refreshUrl": "https://api.astrada.co/auth/realms/{accountId}/protocol/openid-connect/token",
            "scopes": {
              "accounts:write": "Accounts write resource",
              "accounts:read": "Accounts read resource",
              "subaccounts:write": "Subaccounts write resource",
              "subaccounts:read": "Subaccounts read resource",
              "card-connector-data-links:write": "card-connector-data-link resource",
              "card-connector-consents:read": "Card Consent read resource",
              "card-connector-consents:write": "Card Consent write resource",
              "webhooks:read": "Read Webhook resources",
              "webhooks:write": "Write Webhook resources",
              "card-subscriptions:write": "Create card subscription",
              "card-subscriptions:read": "Read card subscription",
              "card-verifications:write": "Create card verification",
              "card-verifications:read": "Read Card verification",
              "cards:read": "Read Card resources",
              "cardholder:read": "Read Cardholder resources",
              "cardholder:write": "Write Cardholder resources",
              "transactions:read": "Read Transaction resources",
              "transaction-messages:read": "Read Transaction Message resources",
              "network-bulk-feeds:read": "Read network bulk feed",
              "network-bulk-feeds:write": "Write network bulk feed",
              "network-bulk-enrollments:read": "Read network bulk enrollment",
              "network-bulk-enrollments:write": "Write network bulk enrollment and confirmation",
              "network-links:write": "Write network link",
              "enrollment-methods:write": "Write enrollment methods",
              "simulation:write": "Write sandbox simulations",
              "banking:read": "Read banking resources",
              "banking:write": "Write banking resources",
              "banking:admin": "Admin banking operations",
              "appstore:enrollment:write": "Enroll cards via the appstore B2C flow",
              "appstore:cards:read": "View enrolled cards in the appstore",
              "appstore:transactions:read": "View synced transactions in the appstore",
              "appstore:transactions:sync": "Trigger transaction sync in the appstore",
              "appstore:sessions:read": "Read appstore session state",
              "appstore:sessions:write": "Write or delete appstore session state",
              "appstore:tokens:read": "Read appstore stored tokens and connections",
              "appstore:tokens:write": "Write appstore stored tokens and connections"
            }
          }
        }
      }
    },
    "parameters": {
      "webhook-id": {
        "in": "path",
        "name": "webhookId",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "3c750084-a60f-478c-ab91-c53567d11fac"
      }
    },
    "schemas": {
      "link": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string"
          },
          "templated": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "deprecation": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "hreflang": {
            "type": "string"
          }
        },
        "required": [
          "href"
        ]
      },
      "webhook-event-types": {
        "type": "array",
        "minItems": 1,
        "items": {
          "type": "string",
          "enum": [
            "cardsubscription.created",
            "cardsubscription.updated",
            "cardholder.updated",
            "transaction.created",
            "transaction.updated",
            "transactionmessage.created",
            "networkbulkfeed.statechanged",
            "enrichment.merchant.created",
            "banklink.completed",
            "bankaccount.state_changed",
            "banktransaction.created",
            "banktransaction.deleted",
            "transaction.match.created",
            "transaction.match.deleted"
          ]
        }
      },
      "webhook": {
        "type": "object",
        "description": "Astrada's Webhook resource.",
        "properties": {
          "_links": {
            "type": "object",
            "required": [
              "self"
            ],
            "properties": {
              "self": {
                "$ref": "#/components/schemas/link"
              }
            }
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "eventTypes": {
            "$ref": "#/components/schemas/webhook-event-types"
          },
          "subaccountId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when this resource was created, in UTC, following ISO 8601 format."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when this resource was last updated, in UTC, following ISO 8601 format."
          },
          "enabled": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "_links",
          "id",
          "url",
          "description",
          "eventTypes",
          "subaccountId",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "responses": {
      "bad-request": {
        "description": "The server cannot or will not process the request due to something that is perceived to be a client error",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Bad Request"
                  ]
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "detail": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "detail"
                    ]
                  }
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "examples": {
              "Example Generic Bad Request Payload Response": {
                "value": {
                  "title": "Bad Request",
                  "detail": "Request object failed validation."
                }
              },
              "Example Generic Bad Request Parameters Response": {
                "value": {
                  "title": "Bad Request",
                  "detail": "Request parameters are invalid."
                }
              }
            }
          }
        }
      },
      "unauthorized": {
        "description": "Authentication credentials were either missing or incorrect",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Unauthorized"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Unauthorized",
              "detail": "Authentication credentials were either missing or incorrect."
            }
          }
        }
      },
      "forbidden": {
        "description": "Authentication credentials used do not have have permissions to perform the request",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Forbidden"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Forbidden",
              "detail": "You do not have permission to access the requested resource."
            }
          }
        }
      },
      "server-error": {
        "description": "The server encountered an unexpected condition that prevented it from fulfilling the request",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Internal Server Error"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Internal Server Error",
              "detail": "The server encountered an unexpected condition that prevented it from fulfilling the request."
            }
          }
        }
      },
      "not-found": {
        "description": "The requested resource was not found on the server",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "instance": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Not Found"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Not Found",
              "detail": "The requested resource was not found on the server."
            }
          }
        }
      }
    },
    "examples": {
      "webhook": {
        "description": "Example of Webhook resource",
        "value": {
          "_links": {
            "self": {
              "href": "/webhooks/3a45ba7f-8d8f-4f6a-86a5-a17ea0328241"
            }
          },
          "id": "3a45ba7f-8d8f-4f6a-86a5-a17ea0328241",
          "url": "https://example-api.com/path",
          "description": "Example of Webhook description",
          "eventTypes": [
            "transactionmessage.created"
          ],
          "subaccountId": "f297d659-c13d-4219-aeaa-e10a845140a5",
          "createdAt": "2023-12-19T14:45:00Z",
          "updatedAt": "2023-12-19T14:45:00Z",
          "enabled": true
        }
      }
    }
  }
}
```