Platform
Connect links & connections
Let your customers connect their accounts, then call those accounts' APIs through RelayPoint.
A connection is an account someone linked to RelayPoint: a Google mailbox, a Microsoft 365 tenant, a Facebook page, a LinkedIn profile, a WhatsApp number, or an app that uses an API key. GET /v1/catalog lists what can be connected, with auth_type (oauth or manual) and availability. All endpoints need the connections scope unless noted.
Connect links
For OAuth items, create a single-use connect link and send its url to the account owner. They sign in with the provider on a hosted page (branded with a reseller's logo and colours when you create the link for a sub-account with RelayPoint-Account) and are sent back to redirect_url. Links expire after expires_in_hours (default 72, at most 720). You get a connection.created webhook when it's done. Creating links needs a live key; resellers also need an approved verification.
curl https://api.relaypoints.online/v1/connect_links \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "catalog_slug": "gmail", "label": "Agent inbox", "redirect_url": "https://example.com/settings/integrations", "expires_in_hours": 72 }'{
"id": "cl_…",
"object": "connect_link",
"account": "org_…",
"catalog_slug": "gmail",
"label": "Agent inbox",
"redirect_url": "https://example.com/settings/integrations",
"status": "open",
"connection": null,
"expires_at": 1793491200,
"created": 1793232000,
"url": "https://…/connect/…"
}GET /v1/connect_links, GET /v1/connect_links/{id} and DELETE /v1/connect_links/{id} (revoke) manage links. Items that use an API key or password are created directly with POST /v1/connections (catalog_slug, credentials); the values are stored encrypted.
Listing and disconnecting
GET /v1/connections and GET /v1/connections/{id} return the connection's status (active, expired, error, disconnected), the account label, granted scopes and billing source. DELETE /v1/connections/{id} disconnects it and revokes RelayPoint's access with the provider when possible. When a provider stops honouring the access, the connection becomes expired and you get connection.expired: send a new connect link.
Billing
Each connection is billed per month: covered by a connection bundle when you have one, otherwise charged to the wallet. If the monthly fee can't be paid, the connection is paused until you top up. See Credits, billing & KYC.
GET /v1/catalog shows the price of each item: billing is connection (billed per connection per month) or ai (billed as AI usage), and monthly_price_usd is the monthly price of one connection outside your bundle pool (null for AI-billed items). Telephony (rp/voice-minutes) is planned and not available yet.
Calling a connected account (recommended)
POST /v1/connections/{id}/request makes the provider API call for you, with the connection's access token. The token never leaves RelayPoint, refreshing is handled for you, and every call is recorded on the connection's page. Send method, path (a path on the provider's API host, or a full https URL on an allowed host), optional query, headers and a JSON body. You get the provider's status, a few useful headers and the body (body_encoding is json, text or base64).
curl https://api.relaypoints.online/v1/connections/conn_…/request \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"method": "GET",
"path": "/gmail/v1/users/me/messages",
"query": { "q": "is:unread", "maxResults": "10" }
}'{
"object": "connection_response",
"connection": "conn_…",
"status": 200,
"headers": { "content-type": "application/json; charset=UTF-8" },
"body": { "messages": [ { "id": "18c…", "threadId": "18c…" } ], "resultSizeEstimate": 1 },
"body_encoding": "json"
}- Only the provider's API hosts are reachable (for example
graph.microsoft.com,graph.facebook.com,api.linkedin.com). For Google, only the API paths covered by the scopes the owner granted are allowed: a Gmail connection can call the Gmail API but not Drive. - Needs a live key with the explicit
connections:requestscope (not included in*). - Limited to 30 calls per minute per key and 60 per account. Requests up to 1 MB, responses up to 5 MB, 30 seconds per call; redirects are not followed.
- A provider error is returned as a normal response with its
status(for example 404 from the provider): RelayPoint errors (403 forbiddenfor a disallowed host or path,429,504 upstream_timeout) use the usual error format. - Works for OAuth connections. For items with manually entered credentials, use the credentials endpoint below.
Fetching credentials
When you must call the provider yourself, GET /v1/connections/{id}/credentials returns, for OAuth connections, only a short-lived access token and its expiry; RelayPoint refreshes it first when it has less than 5 minutes left. Refresh tokens and RelayPoint's OAuth client secrets are never returned. For manually entered credentials it returns the stored values, and only to the account that owns the connection or its reseller. It needs a live key with the explicit connections:credentials scope, is limited to 30 per minute per key (60 per account), and every fetch is recorded with the key and IP address. Cache the token until shortly before expires_at.
{
"object": "connection_credentials",
"connection": "conn_…",
"type": "oauth2",
"access_token": "ya29.…",
"token_type": "Bearer",
"expires_at": 1793235600
}