canonical: https://jentic.com/apis/sage.com/sage

# Sage Accounting API

Accounting and business management software. The API exposes 3 endpoints secured with apiKey authentication.

## For AI agents

Programmatically get access token, list resources. Covers 3 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or crm - use for finance and accounting only.

## Capabilities

- Get access token
- List resources
- Integrate Sage Accounting API into automated workflows
- Query and filter Sage Accounting API records by parameters
- Monitor Sage Accounting API operational status and events

## Use cases

### Finance and Accounting Operations

Use the Sage Accounting API to perform finance operations programmatically. The API provides 3 endpoints covering core functionality including get access token, list resources, get resource.

Example prompt: Call POST /auth/token to get access token

### Automated Authentication Management

Automate authentication operations by combining multiple Sage Accounting API endpoints. Agents can list resources and then get resource in a single workflow.

Example prompt: Call GET /resources to list resources, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Sage Accounting API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'get access token', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /auth/token | Get access token |
| GET | /resources | List resources |
| GET | /resources/{id} | Get resource |

## Key resources

- **Authentication** — Authentication and authorization
- **Resources** — Resource management

## Why Jentic

- **Setup:** Wiring the Sage Accounting API by hand means exchanging its API key for a token at /auth/token, attaching it to each call against api.sage.com, and managing your own retries. Through Jentic you install once, import the Sage Accounting API from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** Sage Accounting puts the resource id in the URL path (/resources/{id}), so a rule can pin your agent to reading one resource. You choose the operations it may call, so it can list and read resources without any write access unless you add it.
- **Credential handling:** Your Sage Accounting API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'get an access token' or 'read an accounting resource', and Jentic returns the matching Sage Accounting API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Plaid** — Alternative finance API
- **Xero** — Alternative finance API

## FAQ

### What authentication does the Sage Accounting API use?

The Sage Accounting API uses an API key passed in the `X-API-Key` header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I get access token with the Sage Accounting API?

Yes. Use the POST /auth/token endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Sage Accounting API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I get access token through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'get access token'. Jentic returns the matching Sage Accounting API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Sage Accounting API have?

The Sage Accounting API exposes 3 endpoints covering authentication, resources operations.

### Can I limit what my agent is allowed to do with the Sage Accounting API?

Yes. Because you run Jentic One yourself, your own rules decide which Sage Accounting operations and credentials the agent may use. You can allow it to call GET /resources and GET /resources/{id} to list and read resources while withholding any write access, and since the resource id sits in the URL path you can pin the agent to reading a single resource. The agent can only invoke the operations you have explicitly permitted.
