Hey guys
I’m CTO of a company and we are providing AI solutions to our clients. For satisfying many use-cases, We need to integrate with their internal tools such as Hubspot, Salesforce, etc
So we always need to ask them for us to generate API keys for those platforms and to do so we need to create a proper tech documentation, pass it to them, wait for them to generate the keys then they pass it through email, a secure link or etc.
After we received the keys, we integrate it into our code and start serving them. as you see this is a pain in the body 
At ~30 clients this is genuinely painful: no central place showing what access we have per client, no expiry tracking, keys living in inboxes forever.
For those of you running agencies or client work: what does your process actually look like? Anything that made it less terrible - tools, templates, OAuth tricks? And what still sucks about it?
Hey @Arman_Ghaffarian welcome to the n8n community
I think most of that pain goes away if you stop collecting keys at all. Register your own app once per platform, a HubSpot developer app and a Salesforce External Client App (connected apps are deprecated now), put n8n’s OAuth callback URL in each, and the client just clicks Connect and authorizes. No setup doc to write, nothing sitting in an inbox, no secret you have to hold. One app per platform covers all 30, and each client’s authorization lands as its own credential.
For the inventory problem, give every client their own project. Credentials belong to the project, so what access you hold for whom becomes a page you open instead of something you reconstruct.
Let me know if this approach helps you.
Thanks Deepankar, solid approach - we do run our own OAuth apps where platforms support it, and you’re right that it removes most of the pain for those.
Where it still breaks for us: the long tail. A lot of client tools are API-key-only (no OAuth at all), plus things like SMTP credentials and DNS records for email setup. Those still end up in inboxes. And even on OAuth platforms, some non-technical clients get lost at the consent screen without a walkthrough doc.
Curious how you handle those cases - and do you track expiry/rotation anywhere, or find out when a workflow dies? 
Hey @Arman_Ghaffarian
We don’t actually track expiry, we test. So there’s a scheduled workflow which calls GET /api/v1/credentials to list everything, then POST /api/v1/credentials/{id}/test on each one, and anything returning status Error goes to Slack. That catches dead keys and revoked OAuth refresh tokens the morning it happens instead of a client telling you. Build it with HTTP Request nodes, the n8n node only does create, delete and get schema. One gotcha: types with no test function return Error with “No testing function found for this credential”, so match that message and skip them.
For the key-only long tail we still do a handoff, just never over email. On consent screens we book ten minutes and screen share rather than writing a doc.
You can take a look at this doc for credential connection as n8n encrypts it the moment you click save.
Let me know if this helps
This thread is gold - thank you both.
@liuxueqi0044 that metadata inventory + classified alerting design is exactly the rigor most teams (including us, honestly) never build - the 401/403 vs 429 vs 5xx classification alone would kill so much alert noise.
Honest question for both of you, because you’ve each clearly invested real engineering time here: if an off-the-shelf tool did this properly - guided access collection for clients (OAuth + the key-only long tail via one-time encrypted requests), the metadata registry per client, canary health checks with classified alerts - would teams like yours even consider adopting it, or is this the kind of thing where everyone serious just builds their own? Trying to figure out if this pain is worth solving for others.
Hey @Arman_Ghaffarian, you’d get adoption, but not on the three features you listed. The registry and the canary are a weekend each, which is why everyone builds their own and why neither is a moat. The part nobody wants to build is the client-facing half, getting a non-technical admin through authorization without a call. That’s the product, and what decides whether we buy it is custody. Hold our clients’ secrets and you need a security review that costs more than building it ourselves. Broker the OAuth, keep metadata and references into our own vault, never see a secret, and it’s an easy yes.
Worth correcting my own advice above too. One app for all 30 depends on your distribution tier, since private OAuth distribution stops at 10 accounts and 100 for Solutions Partners. As an agency you’d qualify for the 100 without a marketplace listing.
If any of the replies here got you what you came for, marking one as the solution makes it easier for the next person to find.
Check this out as well.
You answered your own question near the end there: you find out when a workflow dies, because access state and run state live in different places, or nowhere. “No central place showing what access we have per client, no expiry tracking, keys living in inboxes forever” is the access half. The dead workflow a client reports before you notice is the run half. They belong in the same record.
What worked for us is one living record per client that holds both halves. Access half: every credential and key with its platform, the named owner on the client side who can rotate it, and its expiry or rotation date, written down at setup while the person who granted it is still in the room. Run half: every run of their workflows recorded with its outcome against that same client record, so a dying key shows up as a visible pattern of failed runs in one place, not as a client email.
The canary testing Deepankar described plugs straight into this. Test results land on the record, next to the credential they tested, instead of in a Slack channel everyone mutes by week two. And for the key-only long tail that still arrives by hand, the record is where the handoff ends: who sent it, who owns it on their side, when it rotates. The inbox stops being the registry, which at 30 clients is the part that actually scales.