Spendesk Analytical fields and cost centers API

Cost centers and analytical fields used to categorise spend. The `v1` endpoints read analytical fields and manage cost centers; the experimental `v2` endpoints also create, update and delete analytical fields and their values. Part of: [Building an accounting integration](/reference/building-an-accounting-integration).

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Cost Accounting Management BC-200.50

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/analytical-fields List analytical fields · Get Analytical Fields #
Ask an LLM
“What analytical fields exist in my company?”
“Can I include archived analytical fields in the list?”
Tell an agent
List analytical fields in company {company}.
Show analytical fields including archived ones.
GET /v1/analytical-fields/{fieldId}/values List values of an analytical field · Get Analytical Values #
Ask an LLM
“What values are set on a given analytical field?”
“Can I include archived values of an analytical field?”
Tell an agent
List values of analytical field {field}.
Show values of analytical field {field} including archived ones.
GET /v1/cost-centers List cost centers · Get Cost Centers #
Ask an LLM
“Which cost centers exist in my company?”
“Can I include archived cost centers?”
Tell an agent
List cost centers in company {company}.
Show cost centers {ids} including archived ones.
POST /v1/cost-centers Create a cost center · Create Cost Centers #
Ask an LLM
“How do I create a new cost center?”
“Who can own a cost center when I create it?”
Tell an agent
Create cost center {name} owned by {owner} with co-owners {coOwners}.
Add a new cost center {name} for company {company}.
PUT /v1/cost-centers/{costCenterId} Update a cost center · Update Cost Centers #
Ask an LLM
“How do I rename an existing cost center?”
“Can I change the owner of a cost center?”
Tell an agent
Update cost center {costCenter} to name {name}, owner {owner}, co-owners {coOwners}.
Rename existing cost center {costCenter} to {name}.
DELETE /v1/cost-centers/{costCenterId} Delete a cost center · Delete Cost Centers #
Ask an LLM
“How do I delete a cost center?”
“Can I remove a cost center I no longer use?”
Tell an agent destructive · confirm first
Delete cost center {costCenter}.
Remove cost center {costCenter} from company {company}.
GET /v2/analytical-fields List analytical fields (v2) · List Analytical Fields #
Ask an LLM
“Which analytical fields does the v2 API return, excluding expense categories?”
“Can I fetch several analytical fields by ID with the v2 list?”
Tell an agent
List analytical fields in company {company} via v2.
Fetch analytical fields {ids} with the v2 list.
POST /v2/analytical-fields Create an analytical field (v2) · Create Analytical Field #
Ask an LLM
“How do I create a new analytical field?”
“Can a v2 analytical field be mandatory or splittable?”
Tell an agent
Create analytical field {name} in company {company}.
Add v2 analytical field {name} with mandatory {required} and splittable {splittable}.
GET /v2/analytical-fields/{fieldId} Get an analytical field (v2) · Get Analytical Field #
Ask an LLM
“How do I look up one analytical field by ID?”
“Can I fetch a v2 analytical field that is the expense categories field?”
Tell an agent
Get analytical field {field} in company {company} via v2.
Show v2 analytical field {field}.
PATCH /v2/analytical-fields/{fieldId} Update an analytical field (v2) · Update Analytical Field #
Ask an LLM
“How do I rename an existing analytical field?”
“Can I make a v2 analytical field mandatory?”
Tell an agent
Rename analytical field {field} to {name} in company {company} via v2.
Set v2 analytical field {field} mandatory to {required}.
DELETE /v2/analytical-fields/{fieldId} Archive an analytical field (v2) · Delete Analytical Field #
Ask an LLM
“How do I archive an analytical field without deleting its values?”
“Can I delete a v2 analytical field that is the expense categories field?”
Tell an agent destructive · confirm first
Archive analytical field {field} in company {company} via v2.
Delete v2 analytical field {field}.
GET /v2/analytical-fields/{fieldId}/values List values of an analytical field (v2) · List Analytical Field Values #
Ask an LLM
“How do I page through all values of an analytical field?”
“Can I get the next page of v2 analytical field values?”
Tell an agent
List values of analytical field {field} in company {company} via v2.
Get {limit} values of v2 analytical field {field} starting at cursor {cursor}.
POST /v2/analytical-fields/{fieldId}/values Add a value to an analytical field (v2) · Create Analytical Field Value #
Ask an LLM
“How do I add a new value to an analytical field?”
“Can I create a value on a yes/no analytical field?”
Tell an agent
Add value {value} to analytical field {field} in company {company} via v2.
Create a new value {value} on v2 analytical field {field}.
GET /v2/analytical-fields/{fieldId}/values/{valueId} Get an analytical field value · Get Analytical Field Value #
Ask an LLM
“Can I read a single value of an analytical field by its ID?”
“How fresh is analytical field value data, and do archived values count?”
Tell an agent
Get analytical field value {valueId} on field {fieldId}.
Show me one value of analytical field {fieldId}.
PATCH /v2/analytical-fields/{fieldId}/values/{valueId} Rename an analytical field value · Update Analytical Field Value #
Ask an LLM
“Can I rename a value used in expenses for reporting?”
“Is it safe to edit a yes/no analytical field value?”
Tell an agent
Rename analytical field value {valueId} on field {fieldId} to {value}.
Update the name of value {valueId} in analytical field {fieldId}.
DELETE /v2/analytical-fields/{fieldId}/values/{valueId} Archive an analytical field value (v2) · Delete Analytical Field Value #
Ask an LLM
“How do I archive a value of an analytical field?”
“Can I archive a value on a yes/no analytical field?”
Tell an agent destructive · confirm first
Archive value {value} of analytical field {field} in company {company} via v2.
Delete v2 analytical field value {value} on field {field}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spendesk:spendesk-analytical-fields-and-cost-centers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spendesk-analytical-fields-and-cost-centers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spendesk Public Analytical fields and cost centers API
  description: Spendesk Public API
  version: '1.0'
  summary: Spendesk Public API
  contact:
    email: support-public-api@spendesk.com
    url: https://developer.spendesk.com/
    name: Spendesk for Developers
  termsOfService: https://www.spendesk.com/en/legals/terms/api-agreement
servers:
- url: https://public-api.spendesk.com
  description: Production
- url: https://public-api.demo.spendesk.com
  description: Sandbox
tags:


# --- truncated at 32 KB (84 KB total) ---
# Full source: https://artifacts.apis.io/spendesk/openapi/spendesk-analytical-fields-and-cost-centers-api-openapi.yml