Skip to main content
Version: 2019-05-29 (Current)

List Webhook Secrets

List all webhook signing secrets for your account. Use this endpoint to view existing secrets, check creation dates, and manage key rotation. Note that the actual secret values are not returned; they are only shown once at creation time.


Request Parametersโ€‹

Optional - 3 fieldsPagination Parameters
โ–ผ
`limit`INTEGER(optional)
Number of secrets to return per page.
Example:20
Constraints:Minimum: 1, Maximum: 100, Default: 20
Default:20
`offset`INTEGER(optional)
Number of secrets to skip for pagination. Use with limit to paginate through large result sets.
Example:0
Default:0
`order`STRING(optional)
Sort order of results.
Example:"chronological"
Values:chronological, reverse_chronological
Default:"chronological"

Responsesโ€‹

200

Successful retrieval

Returns a paginated list of webhook secret objects. Note that the actual secret values are not included in the response for security reasons.

Response includes:
  • object - Object type (always "list")
  • data - Array of webhook secret objects
  • limit - Number of results per page
  • offset - Number of skipped results
  • total - Total number of secrets
  • order - Sort order applied

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Limit exceeds maximum (100)
  • Invalid order parameter
  • Negative offset value

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key
  • Incorrect HTTP Basic Auth format

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/webhooks/secrets \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-G \
-d limit=20 \
-d offset=0

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
bad_requestInvalid parametersCheck parameter values
invalid_parametersInvalid pagination parametersCheck limit and offset values

Webhook Secret List Fieldsโ€‹

FieldDescription
objectObject type (always "list")
dataArray of webhook secret objects
limitNumber of items per page
offsetNumber of items skipped
totalTotal number of secrets
orderSort order applied

Webhook Secret Object Fieldsโ€‹

FieldDescription
objectObject type (always "webhook_secret")
idUnique secret identifier (whsec_*)
livemodeWhether this is a live mode secret
created_atISO 8601 timestamp of creation

๐Ÿ”‘API Credentials

Try it outโ€‹

Your IP: ...Loading...