Skip to content

MailboxesResource.create() missing required agent_handle parameter #3

Closed

Description

@alex-w-99

The POST /mailboxes endpoint requires agent_handle in the request body, but MailboxesResource.create() does not accept or pass it. This causes a 422 when creating a mailbox through the SDK.

inkbox.mail.exceptions.InkboxAPIError: HTTP 422: [{'type': 'missing', 'loc': ['body', 'agent_handle'], 'msg': 'Field required', 'input': {'display_name': 'inkbox-kernel Agent'}}]

AgentIdentity.create_mailbox() is also affected since it delegates to MailboxesResource.create() without passing self.agent_handle.

Suggested fix: add agent_handle as a required param to MailboxesResource.create(), and have AgentIdentity.create_mailbox() pass self.agent_handle automatically.

Activity

  1. added theissue type on Mar 14, 2026
  2. linked a pull request that will close this issuefix: agent handler passing #4on Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions