Skip to Content
SDKsPHPErrors and Envelope

PHP Errors and Envelope

The SDK keeps language-native ergonomics while preserving raw wire-level semantics.

PHP

final class ResponseEnvelope {
  public mixed $data;
  public array $meta;
  public ?array $error;
}

Canonical Wire Rules

  • JSON keys are always camelCase on the wire
  • SDK aliases may expose snake_case or PascalCase accessors
  • Raw envelope remains available for diagnostics and logging

See Response Envelope for complete field semantics.

Last updated on