Skip to content

Starting with API python #13

@cyrduf

Description

@cyrduf

Hello,

I start with getting start script given on your site and I try to launch localy on my desktop in first step the "getting start" script using the API KEY defined on BREVO site account.

I have this result:

Exception when calling AccountApi->get_account: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 12 Jun 2025 18:45:06 GMT', 'Content-Type': 'application/json', 'Content-Length': '72', 'Connection': 'keep-alive', 'access-control-allow-credentials': 'true', 'sib-request-id': '2dc45d44-da76-909c-8a3a-c4fa031d5e3a', 'access-control-allow-origin': '', 'access-control-allow-headers': '', 'access-control-allow-methods': 'PUT, POST, GET, DELETE, PATCH, OPTIONS', 'x-envoy-upstream-service-time': '5', 'cf-cache-status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '94eb80da6ee43d0a-CDG'})
HTTP response body: {"message":"authentication not found in headers","code":"unauthorized"}

So how to have a first starting script example to be able to go further with the brevo-python lib.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions