Class: Anthropic::Models::Beta::Organization::WebhookListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/organization/webhook_list_params.rb,
sig/anthropic/models/beta/organization/webhook_list_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::Webhooks#list

Defined Under Namespace

Modules: Order

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(after_id: nil, before_id: nil, limit: nil, order: nil, betas: nil, request_options: {}) ⇒ WebhookListParams

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::WebhookListParams for more details.

Parameters:

  • after_id (String, nil) (defaults to: nil) —

    ID of the object to use as a cursor for pagination. When provided, returns the p

  • before_id (String, nil) (defaults to: nil) —

    ID of a webhook endpoint to use as a cursor. Returns the first limit endpoints

  • limit (Integer) (defaults to: nil) —

    Number of items to return per page, up to 100. The default, 0, means 20.

  • order (Symbol, Anthropic::Models::Beta::Organization::WebhookListParams::Order, nil) (defaults to: nil) —

    Sort order by created_at. Defaults to desc, newest first.

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send webhooks-2026-10-07 in this heade

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • after_id: (String, nil) (defaults to: nil)
  • before_id: (String, nil) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • order: (Anthropic::Models::Beta::Organization::WebhookListParams::order, nil) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/organization/webhook_list_params.rb', line 45

Instance Attribute Details

#after_id ⇒ String?

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


17
# File 'lib/anthropic/models/beta/organization/webhook_list_params.rb', line 17

optional :after_id, String, nil?: true

#before_id ⇒ String?

ID of a webhook endpoint to use as a cursor. Returns the first limit endpoints that come before it in list order, not the limit endpoints just before it.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


24
# File 'lib/anthropic/models/beta/organization/webhook_list_params.rb', line 24

optional :before_id, String, nil?: true

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send webhooks-2026-10-07 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



43
# File 'lib/anthropic/models/beta/organization/webhook_list_params.rb', line 43

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#limit ⇒ Integer?

Number of items to return per page, up to 100. The default, 0, means 20.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


30
# File 'lib/anthropic/models/beta/organization/webhook_list_params.rb', line 30

optional :limit, Integer

#order ⇒ Symbol, ...

Sort order by created_at. Defaults to desc, newest first.

Parameters:

  • value (Anthropic::Models::Beta::Organization::WebhookListParams::order, nil)

Returns:



36
# File 'lib/anthropic/models/beta/organization/webhook_list_params.rb', line 36

optional :order, enum: -> { Anthropic::Beta::Organization::WebhookListParams::Order }, nil?: true

Instance Method Details

#to_hash ⇒ { after_id: String?, before_id: String?, limit: Integer, order: Anthropic::Models::Beta::Organization::WebhookListParams::order?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ after_id: String?, before_id: String?, limit: Integer, order: Anthropic::Models::Beta::Organization::WebhookListParams::order?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


44
45
46
47
48
49
50
51
# File 'sig/anthropic/models/beta/organization/webhook_list_params.rbs', line 44

def to_hash: -> {
  after_id: String?,
  before_id: String?,
  limit: Integer,
  order: Anthropic::Models::Beta::Organization::WebhookListParams::order?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}