How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Datadog Logs API

Search your logs and send them to your Datadog platform over HTTP. See the [Log Management page](https://docs.datadoghq.com/logs/) for more information.

Datadog Logs API is one of 186 APIs that Datadog publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 4 JSON Schema definitions.

Tagged areas include Logs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, and 4 JSON Schemas.

This API exposes 2 operations across 2 paths, and defines 29 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 3 base URLs: https://{subdomain}.{site}, {protocol}://{name}, https://api.datadoghq.com.

2 operations 2 paths 29 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.datadoghq.com
Authentication
OAuth 2.0, API Key, API Key, HTTP Bearer
Resource Areas
1

Authentication & Security 4

Datadog Logs API declares 4 security schemes for authenticating requests. It supports OAuth 2.0 (AuthZ) using the authorizationCode flow, exposing 68 scopes. An API key is passed in the header as DD-API-KEY (apiKeyAuth). An API key is passed in the header as DD-APPLICATION-KEY (appKeyAuth). It accepts HTTP bearer tokens (bearerAuth).

  • AuthZ — This API uses OAuth 2 with the implicit grant flow.
  • apiKeyAuth — Your Datadog API Key.
  • appKeyAuth — Your Datadog APP Key.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Logs 2

Search your logs and send them to your Datadog platform over HTTP. See the Log Management page for more information.

POST
/api/v2/logs
Datadog Send Logs
SubmitLog 2 params body → 202400401403408413429500
POST
/api/v2/logs/events/search
Datadog Search Logs (post)
ListLogs body → 200400403429

Schemas 29

The contract defines 29 schemas that model the data the API accepts and returns. The most detailed are LogAttributes_2 (8 properties), LogAttributes (7 properties), HTTPLogItem_2 (6 properties), LogsQueryFilter (5 properties). Each schema is shown below with its type and property counts.

APIErrorResponse
object
API error response.
1 property 1 required
LogType
string
Type of the event.
HTTPLog
array
Structured log message.
HTTPLogItem
object
Logs that are sent over HTTP.
5 properties 1 required
LogsResponseMetadataPage
object
Paging attributes.
1 property
LogsListRequestPage
object
Paging attributes for listing logs.
2 properties
LogsQueryOptions
object
Global query options that are used during the query. Note: These fields are currently deprecated and do not affect the query results.
2 properties
LogsAggregateResponseStatus
string
The status of the response
HTTPLogErrors
object
Invalid query performed.
1 property
LogsWarning
object
A warning message indicating something that went wrong with the query
3 properties
LogsStorageTier
string
Specifies storage type as indexes, online-archives or flex
LogAttributes
object
JSON object containing all log attributes and their associated values.
7 properties
LogsListResponseLinks
object
Links attributes.
1 property
HTTPLogError
object
List of errors.
3 properties
LogsListRequest
object
The request for a logs list.
4 properties
LogsListResponse
object
Response object with all logs matching the request and pagination information.
3 properties
ContentEncoding
string
HTTP header used to compress the media-type.
LogsResponseMetadata
object
The metadata associated with a request
5 properties
LogsQueryFilter
object
The search and filter query settings
5 properties
LogsSort
string
Sort parameters when querying logs.
Log
object
Object description of a log after being processed and stored by Datadog.
3 properties
HTTPLogSuccess
object
Response indicating logs were accepted for processing
APIErrorResponse_2
object
Standard API error response returned for failed requests
1 property 1 required
LogsQueryFilter_2
object
Filter criteria for log search queries
4 properties
Log_2
object
A single log event returned from a search query
3 properties
HTTPLogItem_2
object
A single log entry to submit to Datadog
6 properties 1 required
LogsListRequest_2
object
Request body for searching log events
3 properties
LogsListResponse_2
object
Response containing matching log events from a search query
2 properties
LogAttributes_2
object
The attributes of a log event returned from the search API
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

datadog-logs-api-openapi.yml Raw ↑

Other APIs Datadog publishes across the network.

Datadog Dashboards API
Datadog Synthetics API
Datadog Service Level Objectives API
Datadog Security Monitoring API
Datadog Service Definition API
Datadog Software Catalog API
Datadog Users API
Datadog Roles API
Datadog Key Management API
Datadog Organizations API
Datadog Downtimes API
Datadog RUM API
Where this information came from

This is an independent, third-party profile of Datadog Logs API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.