Skip to content
Docs · Numbers from your tools

Team and roles

Numbers from your tools

Your AI teammate keeps numbers up to date from Stripe, Meta and PostHog with a read-only key from your Vault, which it never sees.

Updated

On this page

Your AI teammate can keep numbers up to date from Stripe, Meta and PostHog. Save a read-only key for each in your Vault. When your AI teammate asks for it, give it through the proxy, and write on each number how it’s measured. Every reading is kept with where it came from. Keys stay in your Vault; your AI teammate never sees them.

How it works

  1. An owner or admin saves the key once, in the Vault, as an API key with its provider set to Stripe, Meta or PostHog. There’s no integration page: the key is an ordinary secret.
  2. Your AI teammate asks for it (ask_for_access { secret }). The key’s holder opens the request in Vault › Requests and presses Share through the proxy, then confirms with their passkey. That binds the key to the platform’s address, so it can be sent nowhere else.
  3. Your AI teammate gets a short pass (request_proxy_pass { secret }) with two lines for its environment, like STRIPE_API_KEY (the pass) and STRIPE_BASE_URL (Yomenie’s proxy for Stripe). It calls the platform’s own API there, and the proxy adds the real key on the way out.
  4. It writes the number on the metric, with the query that produced it. What to read is written on the metric itself, under How it’s measured, for example “Stripe: sum of active subscriptions’ monthly amount × 12, in AUD”.

Stripe

Make a restricted key in Stripe (Developers → API keys → Create restricted key) with Read on the resources your numbers need: Balance, Charges, Customers, Invoices, Subscriptions, Prices and Products. Save it in the Vault with provider Stripe.

Through Yomenie the key reads GET /v1/balance, /v1/balance_transactions, /v1/charges, /v1/customers, /v1/invoices, /v1/subscriptions (search too), /v1/prices and /v1/products. Nothing that creates, changes or refunds is allowed, and the restricted key can’t write either.

Date filters work as Stripe writes them: created[gte]=1764547200.

Meta

In Business Manager, make a system user and give it a token with read_insights, pages_read_engagement, instagram_basic and instagram_manage_insights (and ads_read if you read ads). A system user’s token doesn’t expire unless it’s revoked. Save it in the Vault with provider Meta.

Through Yomenie the token reads the Graph API (GET only: insights, pages, Instagram media). Posting, deleting and the method override aren’t passed.

PostHog

Make a personal API key in PostHog (Settings → Personal API keys) with the read scopes query:read and insight:read. Save it in the Vault with provider PostHog, and set the secret’s website to your PostHog address: https://us.posthog.com, https://eu.posthog.com or your own. The key goes to that address only.

Through Yomenie the key runs HogQL queries (POST /api/projects/<id>/query) and reads insights (GET /api/projects/<id>/insights). Nothing else in PostHog is reachable with it, not people or recordings.

Limits

Each AI teammate makes up to 1,000 calls a day to these platforms through Yomenie, counted apart from its model tokens. It resets at midnight in your workspace’s time zone. Calls also follow the proxy’s usual rate limits.

Turning it off

  • In Yomenie: take the access back on the secret (revoke_secret_access { key, agent }, or the secret’s page), or delete the secret. The next call is refused.
  • At the platform: delete the Stripe key, remove the Meta system user, or delete the PostHog key.

If a key’s provider or website changes after it was given, calls are refused with the address it’s bound to and the one the route needs; give it through the proxy again to bind it to the new one.

From your AI tool

You want to Tool
Ask for a key (as an AI teammate) ask_for_access { secret }
Get a pass for it request_proxy_pass { secret }
Take the access back revoke_secret_access { key, agent }
See the calls list_proxy_calls, get_proxy_call

Giving a key through the proxy needs the holder’s passkey, so it happens in Yomenie.