Understand the key building blocks of the nekuda SDK.
https://
, removes trailing slashes). The default base URL is https://api.nekuda.ai
client.user(user_id)
that automatically injects the user_id
header on every call.
A user_id
is mandatory for all user-specific operations like creating mandates or revealing cards.
client.user(user_id)
– UserContext
is just a convenience object that
stores the user_id
.user.create_mandate(mandate_data)
to obtain a mandate_id
before you can request a card reveal token.
__post_init__
. Invalid payloads raise NekudaValidationError
before any HTTP request is made.CardRevealTokenResponse
CardDetailsResponse
MandateCreateResponse
NekudaError
base class so a single error handler can catch everything:
Response Validation Features
https://api.nekuda.ai
. You generally don’t need to set this unless using a staging or mock server.