Test Callback Endpoint
post
/v1/besu/event-subscriptions/test-callback
Use this to verify delivery to an HTTPS callback URL without creating a subscription. It optionally supports OAuth, TLS, and a custom JSON payload.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest to test delivery to an event subscription callback endpoint.
Show Source
-
callbackUrl(required): string
(uri)
HTTPS callback endpoint to test. HTTP endpoints are rejected by default.
-
oauth: object
EventSubscriptionOAuthConfig
OAuth 2.0 configuration for callback authentication.
-
payload:
Optional callback test payload. Accepts any valid JSON value; when omitted, a default test payload is sent.
-
tls: object
EventSubscriptionTlsConfig
TLS or mTLS configuration for callback delivery. If mTLS is used, both
clientCertandclientKeymust be provided together.
Nested Schema : EventSubscriptionOAuthConfig
Type:
objectOAuth 2.0 configuration for callback authentication.
Show Source
-
authInHeader: boolean
Default Value:
trueControls OAuth token request client-auth placement. When true, sends `clientId:clientSecret` in an HTTP Basic Authorization header to the token endpoint. When false, sendsclient_idandclient_secretform fields in the token request body. -
clientId(required): string
OAuth 2.0 client identifier registered for the callback endpoint.
-
clientSecret(required): string
OAuth 2.0 client secret used for token acquisition.
-
grantType: string
Default Value:
client_credentialsAllowed Values:[ "client_credentials", "refresh_token" ]OAuth 2.0 token grant used for callback access-token acquisition.client_credentialsobtains an access token with the configured client credentials.refresh_tokenuses the suppliedrefreshTokenand retains any replacement refresh token returned by the identity provider. -
refreshToken: string
Required when
grantType=refresh_token; pre-provisioned OAuth refresh token used to mint callback access tokens. -
scopes: string
Space-delimited OAuth scopes requested during token exchange.
-
tls: object
EventSubscriptionTlsConfig
TLS or mTLS configuration for callback delivery. If mTLS is used, both
clientCertandclientKeymust be provided together. -
tokenTls: object
EventSubscriptionTlsConfig
TLS or mTLS configuration for callback delivery. If mTLS is used, both
clientCertandclientKeymust be provided together. -
tokenUrl(required): string
(uri)
OAuth 2.0 token endpoint used to obtain access tokens for callbacks.
Match All
OAuth 2.0 configuration for callback authentication.
Show Source
Nested Schema : EventSubscriptionTlsConfig
Type:
objectTLS or mTLS configuration for callback delivery. If mTLS is used, both
Show Source
clientCert and clientKey must be provided together.-
caCert: string
PEM-encoded CA certificate used to verify callback server certificates.
-
clientCert: string
PEM-encoded client certificate for callback mTLS.
-
clientKey: string
PEM-encoded PKCS#8 private key for callback mTLS.
-
insecureSkipVerify: boolean
Default Value:
falseWhentrue, skips TLS certificate verification. Use only in controlled non-production environments.
Examples
Back to Top
Response
Supported Media Types
- application/json
204 Response
Returns confirmation that callback delivery succeeded.
400 Response
Validation failed.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Examples
500 Response
Unexpected service error.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Examples
503 Response
Event subscriptions are unavailable.
Root Schema : ErrorResponse
Type:
objectError response returned by the service.
Show Source
-
decodedError:
Returned only when `decode.errors=true` and decodable revert bytes are present.
-
error: string
Short error summary suitable for display.
-
hint: [
"string",
"null"
]
Optional guidance for resolving the error.
-
message: [
"string",
"null"
]
Additional error details, when available.
-
policy:
Present for policy warnings or denials such as preflight failure.
-
preflight:
Present for preflight-gated transaction submission errors.
-
requestId: [
"string",
"null"
]
Client-provided correlation ID echoed in the response.
-
upstreamCode: [
"integer",
"null"
]
Besu node error code, when provided by the RPC endpoint.
-
upstreamData: [
"string",
"null"
]
Error data returned by the Besu node in 0x-prefixed hexadecimal or JSON format, when available.
-
upstreamError: [
"object",
"null"
]
upstreamError
Additional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Nested Schema : upstreamError
Type:
objectAdditional Properties Allowed:
trueComplete error object returned by the Besu node, including code, message, and data fields, when available.
Examples