Join fellow LogicMonitor users at the Elevate Community Conference and get hands-on with our latest product innovations.

Register Now

Resources

Explore our blogs, guides, case studies, eBooks, and more actionable insights to enhance your IT monitoring and observability.

View Resources

About us

Get to know LogicMonitor and our team.

About us

Documentation

Read through our documentation, check out our latest release notes, or submit a ticket to our world-class customer service team.

View Resources

LogicMonitor v3 SDK

Last updated on 27 April, 2025

LogicMonitor supports Python and GO SDK for REST API v3. You can use these SDKs to efficiently interact with v3 APIs and build API-based integrations and workflow processes.

Note:

  • For Python SDKs, the REQUEST parameters can contain camelCase or an underscore.
  • Both underscore and camelCase are supported if parameters are encapsulated within the body.
  • Only camelCase is supported if parameters are encapsulated within the body and also if the user is passing raw JSON as REQUEST parameter. However, the RESPONSE parameters always contain an underscore. For example, you can use testLocation or test_location in the REQUEST parameter. But the RESPONSE parameter will always be test_location.
  • The fields parameter only supports camelCase.

Downloading the SDK

You can download Python SDK via pip:

pip install logicmonitor-sdk

Alternatively, you can also download the compressed tar file of the Python and Go SDK. The SDKs are also available via LogicMonitor’s GitHub.

Authenticating the SDK

You must authenticate yourself before using the GO and Python SDK. You can use either an LMv1Auth or a Bearer token to authenticate.

Authenticating GO SDK using Bearer Token

The supported method in config is SetBearerToken(). By default, nil is set as the bearer token. You have to enter your bearer token to authenticate.

Example
bearerToken := “BEARER_TOKEN_VALUE”
config.SetBearerToken(&bearerToken)

Autheticate Go SDK command

Authenticating Python SDK using Bearer Token

To authenticate yourself using Bearer token, enter the following details:

configuration.auth_type = ‘Bearer’

configuration.bearer_token = ‘BEARER_TOKEN_VALUE’

API bearer token command

Using the SDK

The Python and GO SDKs are auto-generated using Swagger Codegen. Detailed documentation with additional examples for the SDK is available here.

In This Article

Start Your Trial

Full access to the LogicMonitor platform.
Comprehensive monitoring and alerting for unlimited devices.