Agents

Connect Anthropic (Admin API key), OpenAI (admin key) or OpenRouter (management key) to read what they billed (admins). The key is checked against the provider, then stored encrypted

post/api/v1/ai-providers

Request

  • Base URL: https://hourtick.com
  • URL: https://hourtick.com/api/v1/ai-providers
  • Auth: HTTP bearer

Request body

provider'anthropic' | 'openai' | 'openrouter' required
keystring required

Anthropic Admin API key, OpenAI admin key, or OpenRouter management key. Stored encrypted, never returned

labelstring
fillGapsboolean

Add what the provider billed beyond what agents reported to the cost ledger (default true)

Response

OK

object required

Changes

No recorded changes to this operation across all 1 revision of this API.