Connect an account
- Open Connections in the dashboard. Accounts are grouped by slot:
email,payments,auth,dbanddeploy. - Pick the service you use and paste the fields it asks for (usually an API key; sometimes a project URL).
- Pramaan checks the credentials with one read-only call before saving them.
When nothing is connected
Calling a capability whose slot has no connected account returns409 connection_required. The
error tells you which slot to connect:
Rotate or remove
Replace the credentials from the same page to rotate them. Removing a connection stops calls on it right away; the next call returnsconnection_required.
Social accounts
You don’t paste anything for social. The person who owns the account (you, or one of your users) signs in on the platform and approves access:- Call
social.account.connect.startwith theplatformand areturnUrlon your site. You get aconnectUrland aref. - Send the person to
connectUrl. They sign in, pick the page or profile if the platform asks, and approve. - They land back on your
returnUrlwithstatus=connected,failedorpendingin the query string, plusplatform, andaccountIdwhen connected. When it failed,errorsays why (denied,wrong_account,nothing_to_connect,missing_permissions,unavailableorfailed) andretry=truemeans trying again can fix it. - Don’t trust the query string alone: confirm with
social.account.connect.status(pass theref), or wait for theconnection.updatedevent.
returnUrl for 15 minutes after you start the flow. If
someone takes longer, they are not sent back to your site: check social.account.connect.status
(the account may still have connected) or start again.
The account then appears in social.accounts.list; use its accountId to post, read the inbox
and so on. social.account.disconnect removes it.
429 rate_limited until the next day (UTC).
Receive events
Pramaan passes events on to your webhook endpoints as plain events:payment.completed,
social.post.published, social.message.received, connection.updated,
sms.message.delivered and more. See webhooks.
- Social and texting: nothing to set up. Events for your accounts and numbers arrive by themselves.
- Payments: events identify your connected account themselves. Open the account’s card on the Connections page if the service asks for a webhook URL.