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

Ternary Cost Allocation API

Manage cost allocation rules, cost centers, and labels

Ternary Cost Allocation API is one of 6 APIs that Ternary publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Cost Allocation. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and a getting-started guide.

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

Requests are made against a single base URL, https://api.ternary.app.

5 operations 2 paths 5 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Server
https://api.ternary.app
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Ternary Cost Allocation API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-API-Key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — API key generated from the Ternary platform settings

Paths & Operations 5

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

Cost Allocation 5

Manage cost allocation rules, cost centers, and labels

GET
/v1/cost-allocations
List Cost Allocations
listCostAllocations 2 params → 200401
POST
/v1/cost-allocations
Create Cost Allocation
createCostAllocation body → 201400401
GET
/v1/cost-allocations/{allocation_id}
Get Cost Allocation
getCostAllocation 1 param → 200401404
PUT
/v1/cost-allocations/{allocation_id}
Update Cost Allocation
updateCostAllocation 1 param body → 200401404
DELETE
/v1/cost-allocations/{allocation_id}
Delete Cost Allocation
deleteCostAllocation 1 param → 204401404

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are CostAllocation (8 properties), CostAllocationRequest (5 properties), CostAllocationListResponse (3 properties), AllocationTarget (2 properties). Each schema is shown below with its type and property counts.

CostAllocation
object
A cost allocation rule for distributing shared cloud costs
8 properties
CostAllocationListResponse
object
3 properties
CostAllocationRequest
object
5 properties 2 required
AllocationTarget
object
2 properties
ErrorResponse
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ternary-cost-allocation-api-openapi.yml Raw ↑

Other APIs Ternary publishes across the network.

Ternary Anomaly Detection API
Ternary Commitments API
Ternary Forecasting API
Ternary Kubernetes API
Ternary Reporting API