Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Elastic.io Contracts API

Manage contracts (tenants)

Elastic.io Contracts API is one of 22 APIs that Elastic.io publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 3 JSON Schema definitions.

Tagged areas include Contracts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a JSON-LD context, and 3 JSON Schemas.

This API exposes 5 operations across 3 paths, and defines 11 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.elastic.io/v2.

5 operations 3 paths 11 schemas 3 GET1 PATCH1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Server
https://api.elastic.io/v2
Authentication
HTTP Bearer
Contact
Terms of Service
Resource Areas
1

Authentication & Security 1

Elastic.io Contracts API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Bearer token authentication. Obtain a token through the elastic.io platform login or API key.

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 3 GET, 1 PATCH, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Contracts 5

Manage contracts (tenants)

GET
/contracts
Elastic.io List contracts
listContracts 2 params → 200401
GET
/contracts/{contract_id}
Elastic.io Get a contract
getContract 1 param → 200401404
PATCH
/contracts/{contract_id}
Elastic.io Update a contract
updateContract 1 param body → 200401404
GET
/contracts/{contract_id}/members
Elastic.io List contract members
listContractMembers 1 param → 200401
POST
/contracts/{contract_id}/members
Elastic.io Add a contract member
addContractMember 1 param body → 200401

Schemas 11

The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are JsonApiLinks (5 properties), Contract (4 properties), JsonApiMeta (4 properties), ContractListResponse (3 properties). Each schema is shown below with its type and property counts.

Contract
object
4 properties
MemberListResponse
object
2 properties
MemberResponse
object
1 property
ErrorResponse
object
1 property
ContractListResponse
object
3 properties
MemberCreateRequest
object
1 property 1 required
JsonApiMeta
object
4 properties
JsonApiRelationship
object
1 property
JsonApiLinks
object
5 properties
ContractResponse
object
1 property
ContractUpdateRequest
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

elastic-io-contracts-api-openapi.yml Raw ↑

Other APIs Elastic.io publishes across the network.

Elastic.io Agents API
Elastic.io Auth Clients API
Elastic.io Auth Secrets API
Elastic.io Components API
Elastic.io Credentials API
Elastic.io Data Samples API
Elastic.io Executions API
Elastic.io Flow Drafts API
Elastic.io Flow Versions API
Elastic.io Flows API
Elastic.io Logs API
Elastic.io Quota Usages API