An integration is one config record for one provider: data.provider names the provider class (SendGridProvider, ShippoProvider, OpenAIProvider…), data.status says whether it is in service, data.priority ranks it against others that can do the same job, and the rest of data holds that provider's settings and keys. The platform picks a config by what the job needs. Nothing points at a config by id.
See it in action
Video tutorials for this topic
7:18Appmint Integrations and API Keys: Connected Services and Scoped Credentials
Connect a supported service or a server-side integration with scoped credentials, prove one operation, and recover a failed or revoked connection.
Most services work on a new business with no config at all, on the platform's own account. Whose account a service runs on (the platform's, a sub-account, or the business's own), and what each costs, is explained in How integrations work and Your Appmint plan, credit, usage and services. The list of providers is the Integration catalog. The person's own walkthrough is Bring your own API credentials, gateway and email.
Use the job's own page first
Many services are connected on their own screen, with steps this page doesn't repeat:
| The job | Go to |
|---|---|
| Card payments, PayPal, Squad, pay later | Take payments on the site |
| Hosted mailboxes, a sending domain, the sender address | Business email and the sending address |
| Reading a support mailbox (IMAP, Microsoft 365) | Shared inbox |
| Carrier rates and labels | Shipping rates and settings |
| Facebook, Instagram and other social accounts | Social posting and inbox |
| Facebook lead ads | Inbound lead channels |
| Phone numbers and calls; SMS registration; WhatsApp | Business phone, SMS number registration, WhatsApp messaging |
| Google Merchant Center, Facebook & Instagram Shop, TikTok Shop, eBay and other sales channels | List a product on a sales channel |
| Turning a platform service on (its agreement) | Your Appmint plan, credit, usage and services |
| Google Analytics or the Meta Pixel | not an integration: Google Analytics and the Facebook Pixel |
Use this page for anything else, and to check, test, switch off or rank any config.
Ask first
- Which service, for what job? "Send our email through SendGrid", "use our OpenAI key for AI".
- Do they already have an account with that provider? The person signs in to it to get the keys. The AI never asks for a key, secret, token or password in chat, and never types one.
- Their own account, or the platform's? Without a config of their own, the platform's account is used and billed to their balance. Their own account moves the provider's bill to them.
- Test or live keys? Use test keys first where the provider has them.
- Is something of theirs already connected for this job? Check step 1 before adding a second.
Steps
1. Integrations: what is there now
List the business's configs with repo_find on config. Report only data.name, data.provider, data.status and data.priority.
A config record holds the keys. repo_find returns every field, secrets included. Never repeat, summarise or copy a key, secret or token out of it, and never put one in a message, a note or another record.
Better, without any secret: call_appengine GET /upstream/integration-connections lists every connection with its title, name, status, state (connected, needs_setup, test_failed, off, platform), mode (test / live), lastTest and isDefault. GET /upstream/integration-status/<provider> gives one provider's setup steps (steps, next), its connections and, for providers that take notices, the webhookUrl to paste at the vendor.
Whether each platform service is running on the business's own account or the platform's: call_appengine GET /usage/shared (account: "own" or "shared"). For payments: GET /storefront/payment-gateways, which shows public fields only.
On screen: Configuration › Integration Config (/integration-config) opens Integrations. It has three tabs: Integrations (every provider as a card, the business's own under Your integrations with their state), All connections (one table of every connection: Integration, Connection, State, Mode, Last test, Changed) and API Playground. A card opens the integration's page (/integration-config?provider=<provider name>).
Hands on: what exists for the job, by name and status. Check: the person sees the same rows on All connections.
2. Pick the provider
call_appengine GET /upstream/integration-types lists every provider (69 on a current engine). Each one has:
| Field | What it tells you |
|---|---|
name | The provider class, e.g. SendGridProvider. This goes in data.provider. |
type | Email, Payment, AI, Database, SocialMedia, Marketplace, GOOGLE, MICROSOFT or Integration |
useCases | The jobs it can do, e.g. ["Email", "Transactional Email", "Marketing"] |
configSchema | Its settings form: each field's title, and required for the ones it must have. format: "password" marks a secret. |
operation | What it can be asked to do (sendEmail, getRates, test…). A config is used for a job only if its provider lists that operation. |
info | What the Integrations screen says about it: title, summary, category, capabilities, before (what the person needs first), regions and currencies when limited, links (the vendor's docs, sign-up, keys page, terms, privacy, pricing), and setup (its steps). |
builtIn | A payment method with nothing to configure (gift cards, the customer wallet, offline payments): only switched on or off. |
Tell the person which fields they will need from the provider before they start, from configSchema.required, and what info.before says they need (for Squad: a Squad business account with KYC done, and the secret key from the Squad dashboard).
Hands on: the provider name.
3. Setup wizard or the integration's page: the person connects it
Stop: this is the person's to do. They enter the credentials on the screen. Send them there with the provider named.
- Setup wizard (
/setup-wizard) has its own connect flow for Stripe, PayPal, Twilio, Facebook, Google, TikTok, Pinterest, LinkedIn and X (Twitter). Most are a sign-in to the provider rather than a key to paste. Each also has Or enter API credentials manually. Use the wizard for these. - For everything else: Integrations › search for the provider › open its card › Connect {name} (or Add connection when it has one already). A drawer opens: Connection name, Status, Priority, Sign in with {name} for providers that connect by signing in, then the provider's own fields. Connect saves it.
What the drawer saves:
data.name: the integration's title (SendGrid), orSendGrid 2for a second one. Give it a clear, unique name (sendgrid-live). The running copy of an integration is kept under provider plus name, so two configs for one provider need different names.data.status:activeunless the person picks another. A new connection goes into service on save, so the Stop in step 5 comes before Connect, not after.data.typeanddata.useCases: the provider's own, never edited.- the provider's fields as typed. A required field left empty is refused before saving (Fill in Secret key.).
An inactive config switches that job off, the platform's account included. While a business has configs for a provider or a job and none of them is active or use-platform, the platform's own account is not used for it either (appengine upstream/upstream.service.ts: leavesPlatformOpen, mayUsePlatform, getIntegrationByOperation). So a SendGrid config saved and left inactive stops the business's email going out through the platform. The same goes for an AI key, a carrier, SMS. Don't save one as Off "for later": finish it the same day, or remove it.
Hands on: the config's id (sk), once saved.
Check: it is on All connections, and on the integration's page with its state (Connected, or Needs a step naming the step left).
4. Test it
Testing runs the provider's own test operation against the provider with these credentials. For most providers it only checks that the credentials are accepted; it doesn't send, charge or post.
- On screen: Test on the connection's card, on the integration's page. The result is kept on the connection and shown there: Last test Passed or Failed with when, the provider's message when it failed, and the card's state (Test failed). A connection that is switched off can't be tested.
- For the AI:
call_appenginePOST /upstream/integration-test/<provider name>with{ "configId": "<sk>" }. It runs the provider's own test on that saved connection and keeps the result:{ ok, message, mode?, at, ms }. Nothing secret goes in the call.
What comes back is the provider's own answer, not just a status code. Tested on a local engine:
| Request | Answer |
|---|---|
POST /upstream/call/OfflineProvider/test with the config's data | { "success": true, "message": "Offline payment provider is ready", … } |
POST /upstream/call/<config id>/test with {}, on an inactive config | 404 not_found. By id only active configs are used. |
POST /upstream/call/<provider name>/test with {}, with no active config of the business's own | 404 not_found, or the platform's config is tested instead when the platform has one. Use integration-test with the configId. |
POST /upstream/integration-test/<provider name> on a connection that is switched off | 400 This connection is switched off. Switch it on to test it. |
A test can fail with HTTP 200: read the body. error, success: false, or status: "failed" is a failure. A wrong key typically reads like 401 API key is invalid; an account problem like 429 You have no credits remaining. Say which one it is: the key, the account, or the settings.
POST /upstream/test/<provider>/<operation> tries an operation on settings that are not saved yet: { "config": <the typed settings, with provider>, "data": {} }, or { "configId": "<sk>", "data": {} } for a saved one. Its result is not kept on the connection. Prefer integration-test for a saved connection.
Hands on: the test's answer. Check: a passing test says so in the provider's words. Don't call a config working on a save alone.
5. Integrations: switch it on
Stop: making it active moves that job onto the business's own account straight away: the next email, label or AI call goes through it and is billed by the provider. Say which jobs move and wait for yes.
The person picks the status on the connection's card (On, Off, Use the platform account, Retired), or in its Settings. Or the AI, after the yes, uses repo_update on config with only the fields that change, e.g. patch: { "status": "active" }. repo_update keeps every other field (the keys stay put). Never resend the whole record to change one field.
data.status | What it means |
|---|---|
active | In service. A config with no status counts as active, so one written without a status is live at once. |
inactive | Switched off. It blocks the platform's account for the job too (step 3 warning). |
deprecated | Retired. Treated like inactive. |
use-platform | Keep the record and its keys, but run the job on the platform's account. The way back from "ours" to "yours" without deleting anything. |
| Field | What it does |
|---|---|
data.priority | 0–100, 1 when unset. When several active configs can do the same job, the highest runs. It is the only thing that picks between them. Make default on the connection's card, or POST /upstream/integration-default/<provider name> with { "configId": "<sk>" }, gives one connection a priority above the provider's others; it must be switched on. |
data.sendOutgoing | On mail providers. false means this config never sends the system's outgoing mail. Unset means yes. |
data.syncIncoming | On mailbox providers (IMAP, Microsoft). false means its mail isn't read in. Unset means yes. |
A save or delete takes effect on the next call: the running copy of that integration is dropped and rebuilt from the new record. There is nothing to restart.
Hands on: the status and priority as saved.
Check: GET /upstream/integration-status/<provider name> shows the connection with the status and priority asked, and isDefault when it is the one used first. Then try the job once: the person sends themselves a test email, quotes a label, asks the AI something. GET /usage/shared now shows that service on account: "own".
Switching off, going back, removing
| They want | Do |
|---|---|
| Stop using their account, carry on with the platform's | status: "use-platform" |
| Stop the job altogether | status: "inactive" (and know it also stops the platform's) |
| Remove it | Settings › Remove this connection › Remove… › Yes, remove it, or repo_delete on config. With no config left, the platform's account is used again. Deleted configs don't go to Trash. |
Each is a Stop: it changes how the business's email, payments or AI run from the next call.
When it's done
Tell the person:
- the provider, the config's name, and whether it is test or live;
- what the test said, in the provider's words;
- its status and priority, and which jobs now run on their account;
- where to change it: Configuration › Integration Config, the integration's page.
What it can't do yet
- The state is only as fresh as the last test. Connected means the keys are there and the last test (if any) passed; a key revoked at the vendor since then shows only on the next test or when a job fails. Test again before relying on an old connection.
- A config saved Off can quietly switch a job off (step 3 warning).
- No arbitrary API. Only the providers in the list can be connected. Your own service needs a provider built for it, or a server of your own calling Appmint: see Bring your own API credentials.
- Config names aren't checked. Spaces and duplicates are accepted on save (tested). Keep names unique per provider yourself.
Don'ts
- Don't ask for, type, paste or repeat a key, secret, token or password. The person enters them on the screen.
- Don't save a new config Off "for later". It turns that job off.
- Don't write a config without
status. It goes live at once. - Don't resend a whole config to change its status. Patch the one field.
- Don't call a config working until its test passes and the job has been tried once.
- Don't connect a service here when the job has its own page (the table at the top).