Connections — API reference
A person's connections to the partner platforms through Authpermit: several accounts per platform, permission profiles and scopes, the nine lifecycle states, BulkConnect (one Authpermit consent for many platforms, per-platform results, retry), revoke at the provider, Connection Templates. Personal connections are visible only to their person. Scopes `integrations:read` and `integrations:write`.
← All groups
Your connections in this account
Scope: integrations:read
· paginated
· connections.index
Parameter In Type Description
platform query string A registry key, e.g. malaleem status query "pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected" cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 429
200 Success
connections *
[Connection]
fields
Connection
consent_id
string | null
consented_at
string | null
external_account_id
string | null
granted_scopes
[string]
health
"unknown" | "healthy" | "failing"
health_checked_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string
last_error
string | null
last_synced_at
string | null
last_used_at
string | null
method
string
next_action
"manage" | "reconnect" | "connect" | "continue" | "none"
pending_change
object | null
a permission change waiting for consent
permission_groups
[object]
fields
category
"read" | "write" | "delete" | "money" | "admin"
scopes
[object]
fields
description
string
scope
string
title
string
permissions
[object]
fields
category
string
scopes
[string]
person
object
fields
email
string (email)
id
string (uuid)
name
string | null
platform *
string
platform_name
string
profile
"basic" | "standard" | "advanced" | "custom"
provider_revocation
string | null
tokens_revoked | nothing_live | revoke_failed | not_supported
revoked_at
string | null
scopes
[string]
status *
"pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected"
status_label
string
status_reason
string | null
terms_version
string | null
updated_at
string (date-time)
visibility
"personal" | "business"
withdrawn_at
string | null
withdrawn_by
"person" | "orchestrator" | nil
workspace_id
string | null
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
Connect one platform
A single-platform BulkConnect: answers the request with `consent_url` — send the person there (Authpermit's consent screen); Authpermit returns them to Record Sender.
Scope: integrations:write
· Idempotency-Key
· connections.create
Request body application/json
label
string
e.g. Personal, Business
platform *
string
profile
"basic" | "standard" | "advanced" | "custom"
scopes
[string]
visibility
"personal" | "business"
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429 · 502
201 Success
bulk_request *
ConnectionBulkRequest
fields
ConnectionBulkRequest
attempts
integer
completed_at
string | null
consent_url
string | null
Send the person here while awaiting_authorization
expires_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string | null
platforms
[string]
profiles
object
results
[object]
fields
connection_id
string (uuid)
error
string
platform
string
status
"pending" | "connected" | "declined" | "failed" | "not_available"
scopes
object
status *
"pending" | "awaiting_authorization" | "completed" | "partial" | "declined" | "failed" | "expired"
visibility
"personal" | "business"
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Authpermit not connected here, or the identity isn't linked
Problem
code *
string
Stable machine-readable code (snake_case)
detail
string
A sentence an app can show
error
object | string
Legacy member kept for existing clients (deprecated)
errors
object
Field → messages, for validation errors
instance
string
The request path
message
string
Legacy member of the mobile sign-in errors (deprecated)
request_id
string
status *
integer
title *
string
type
string (uri)
A URI identifying the problem type (https://recordsender.com/problems/<code>)
422 Problem details (422)
429 Problem details (429)
502 Authpermit refused
Problem
code *
string
Stable machine-readable code (snake_case)
detail
string
A sentence an app can show
error
object | string
Legacy member kept for existing clients (deprecated)
errors
object
Field → messages, for validation errors
instance
string
The request path
message
string
Legacy member of the mobile sign-in errors (deprecated)
request_id
string
status *
integer
title *
string
type
string (uri)
A URI identifying the problem type (https://recordsender.com/problems/<code>)
Example
POST
/api/v1/connections/bulk
Start BulkConnect
One Authpermit consent request for every picked platform (or a template's). Platforms Authpermit doesn't know, or whose profile matches no scope, are answered at once as not_available.
Scope: integrations:write
· Idempotency-Key
· connections.bulk
Request body application/json
label
string
platforms
[string]
profiles
object
platform key → basic | standard | advanced | custom
scopes
object
platform key → [scope] for custom
template_id
string
a template id or builtin:personal | builtin:business | builtin:professional
visibility
"personal" | "business"
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429 · 502
201 Success
bulk_request *
ConnectionBulkRequest
fields
ConnectionBulkRequest
attempts
integer
completed_at
string | null
consent_url
string | null
Send the person here while awaiting_authorization
expires_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string | null
platforms
[string]
profiles
object
results
[object]
fields
connection_id
string (uuid)
error
string
platform
string
status
"pending" | "connected" | "declined" | "failed" | "not_available"
scopes
object
status *
"pending" | "awaiting_authorization" | "completed" | "partial" | "declined" | "failed" | "expired"
visibility
"personal" | "business"
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Authpermit not connected here, or the identity isn't linked
Problem
code *
string
Stable machine-readable code (snake_case)
detail
string
A sentence an app can show
error
object | string
Legacy member kept for existing clients (deprecated)
errors
object
Field → messages, for validation errors
instance
string
The request path
message
string
Legacy member of the mobile sign-in errors (deprecated)
request_id
string
status *
integer
title *
string
type
string (uri)
A URI identifying the problem type (https://recordsender.com/problems/<code>)
422 Problem details (422)
429 Problem details (429)
502 Authpermit refused
Problem
code *
string
Stable machine-readable code (snake_case)
detail
string
A sentence an app can show
error
object | string
Legacy member kept for existing clients (deprecated)
errors
object
Field → messages, for validation errors
instance
string
The request path
message
string
Legacy member of the mobile sign-in errors (deprecated)
request_id
string
status *
integer
title *
string
type
string (uri)
A URI identifying the problem type (https://recordsender.com/problems/<code>)
Example
GET
/api/v1/connections/bulk/{id}
A BulkConnect request (asks Authpermit when still waiting)
Scope: integrations:read
· connections.show_bulk
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
bulk_request *
ConnectionBulkRequest
fields
ConnectionBulkRequest
attempts
integer
completed_at
string | null
consent_url
string | null
Send the person here while awaiting_authorization
expires_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string | null
platforms
[string]
profiles
object
results
[object]
fields
connection_id
string (uuid)
error
string
platform
string
status
"pending" | "connected" | "declined" | "failed" | "not_available"
scopes
object
status *
"pending" | "awaiting_authorization" | "completed" | "partial" | "declined" | "failed" | "expired"
visibility
"personal" | "business"
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/connections/bulk/{id}/retry
Retry a BulkConnect request's failed and declined platforms
Granted-but-failed platforms are verified again; the others get a new consent request (a new consent_url).
Scope: integrations:write
· Idempotency-Key
· connections.retry_bulk
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
bulk_request *
ConnectionBulkRequest
fields
ConnectionBulkRequest
attempts
integer
completed_at
string | null
consent_url
string | null
Send the person here while awaiting_authorization
expires_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string | null
platforms
[string]
profiles
object
results
[object]
fields
connection_id
string (uuid)
error
string
platform
string
status
"pending" | "connected" | "declined" | "failed" | "not_available"
scopes
object
status *
"pending" | "awaiting_authorization" | "completed" | "partial" | "declined" | "failed" | "expired"
visibility
"personal" | "business"
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Nothing to retry
Problem
code *
string
Stable machine-readable code (snake_case)
detail
string
A sentence an app can show
error
object | string
Legacy member kept for existing clients (deprecated)
errors
object
Field → messages, for validation errors
instance
string
The request path
message
string
Legacy member of the mobile sign-in errors (deprecated)
request_id
string
status *
integer
title *
string
type
string (uri)
A URI identifying the problem type (https://recordsender.com/problems/<code>)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/connections/business
The business account's business connections (admins)
For admins with integration:manage in a business account; a delegated admin sees their workspace's only. Personal connections are never listed.
Scope: integrations:read
· paginated
· connections.business
Parameter In Type Description
platform query string status query "pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected" cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 429
200 Success
connections *
[Connection]
fields
Connection
consent_id
string | null
consented_at
string | null
external_account_id
string | null
granted_scopes
[string]
health
"unknown" | "healthy" | "failing"
health_checked_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string
last_error
string | null
last_synced_at
string | null
last_used_at
string | null
method
string
next_action
"manage" | "reconnect" | "connect" | "continue" | "none"
pending_change
object | null
a permission change waiting for consent
permission_groups
[object]
fields
category
"read" | "write" | "delete" | "money" | "admin"
scopes
[object]
fields
description
string
scope
string
title
string
permissions
[object]
fields
category
string
scopes
[string]
person
object
fields
email
string (email)
id
string (uuid)
name
string | null
platform *
string
platform_name
string
profile
"basic" | "standard" | "advanced" | "custom"
provider_revocation
string | null
tokens_revoked | nothing_live | revoke_failed | not_supported
revoked_at
string | null
scopes
[string]
status *
"pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected"
status_label
string
status_reason
string | null
terms_version
string | null
updated_at
string (date-time)
visibility
"personal" | "business"
withdrawn_at
string | null
withdrawn_by
"person" | "orchestrator" | nil
workspace_id
string | null
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
401 Problem details (401)
403 Not an admin of a business account
Problem
code *
string
Stable machine-readable code (snake_case)
detail
string
A sentence an app can show
error
object | string
Legacy member kept for existing clients (deprecated)
errors
object
Field → messages, for validation errors
instance
string
The request path
message
string
Legacy member of the mobile sign-in errors (deprecated)
request_id
string
status *
integer
title *
string
type
string (uri)
A URI identifying the problem type (https://recordsender.com/problems/<code>)
429 Problem details (429)
Example
GET
/api/v1/connections/identity
Your Authpermit identity link
Scope: integrations:read
· connections.identity
Responses 200 · 401 · 403 · 429
200 Success
identity *
ConnectionIdentity
fields
ConnectionIdentity
configured
boolean
Authpermit is connected on this server
linked *
boolean
linked_at
string | null
refresh_expires_at
string | null
refreshed_at
string | null
status
"linked" | "reauthorization_required" | "unlinked"
sub
string
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
GET
/api/v1/connections/platforms
The BulkConnect pick list
Every platform a person can connect, first-wave platforms first, with its status at Authpermit (ready, not_on_authpermit, not_configured, unavailable) and scopes by permission category; the permission profiles and the lifecycle states.
Scope: integrations:read
· connections.platforms
Responses 200 · 401 · 403 · 429
200 Success
categories
[object]
fields
description
string
key
string
label
string
platforms *
[object]
fields
category
string
first_wave
boolean
hq_group
string
hq_group_label
string
key
string
name
string
scopes
[object]
fields
category
string
scope
string
status
"ready" | "not_on_authpermit" | "not_configured" | "unavailable"
terms_url
string | null
terms_version
string | null
profiles
[object]
fields
categories
array | null
description
string
key
string
label
string
states
[object]
fields
key
string
label
string
meaning
string
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
GET
/api/v1/connections/templates
Connection Templates: the suggested ones and the account's
Scope: integrations:read
· paginated
· connections.templates
Parameter In Type Description
cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
templates *
[ConnectionTemplate]
fields
ConnectionTemplate
builtin
boolean
description
string | null
id *
string
a UUID, or builtin:<key>
items
[object]
fields
platform
string
profile
string
name *
string
workspace_id
string | null
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
POST
/api/v1/connections/templates
Create a Connection Template (admins)
Scope: integrations:write
· Idempotency-Key
· connections.create_template
Request body application/json
description
string
items *
[object]
fields
platform
string
profile
"basic" | "standard" | "advanced"
name *
string
workspace_id
string | null
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429
201 Success
template *
ConnectionTemplate
fields
ConnectionTemplate
builtin
boolean
description
string | null
id *
string
a UUID, or builtin:<key>
items
[object]
fields
platform
string
profile
string
name *
string
workspace_id
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
DELETE
/api/v1/connections/templates/{id}
Delete a Connection Template (admins)
Scope: integrations:write
· connections.delete_template
Parameter In Type Description
id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/connections/{id}
A connection with its activity history
Scope: integrations:read
· connections.show
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
connection *
Connection
fields
Connection
consent_id
string | null
consented_at
string | null
external_account_id
string | null
granted_scopes
[string]
health
"unknown" | "healthy" | "failing"
health_checked_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string
last_error
string | null
last_synced_at
string | null
last_used_at
string | null
method
string
next_action
"manage" | "reconnect" | "connect" | "continue" | "none"
pending_change
object | null
a permission change waiting for consent
permission_groups
[object]
fields
category
"read" | "write" | "delete" | "money" | "admin"
scopes
[object]
fields
description
string
scope
string
title
string
permissions
[object]
fields
category
string
scopes
[string]
person
object
fields
email
string (email)
id
string (uuid)
name
string | null
platform *
string
platform_name
string
profile
"basic" | "standard" | "advanced" | "custom"
provider_revocation
string | null
tokens_revoked | nothing_live | revoke_failed | not_supported
revoked_at
string | null
scopes
[string]
status *
"pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected"
status_label
string
status_reason
string | null
terms_version
string | null
updated_at
string (date-time)
visibility
"personal" | "business"
withdrawn_at
string | null
withdrawn_by
"person" | "orchestrator" | nil
workspace_id
string | null
events
[object]
fields
actor_id
string | null
at
string (date-time)
from
string | null
reason
string | null
to
string
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/connections/{id}/check
Check a connection now
The consent is still live at Authpermit, the cached token introspects active, and a token can be exchanged.
Scope: integrations:write
· Idempotency-Key
· connections.check
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
connection
Connection | null
fields
Connection
consent_id
string | null
consented_at
string | null
external_account_id
string | null
granted_scopes
[string]
health
"unknown" | "healthy" | "failing"
health_checked_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string
last_error
string | null
last_synced_at
string | null
last_used_at
string | null
method
string
next_action
"manage" | "reconnect" | "connect" | "continue" | "none"
pending_change
object | null
a permission change waiting for consent
permission_groups
[object]
fields
category
"read" | "write" | "delete" | "money" | "admin"
scopes
[object]
fields
description
string
scope
string
title
string
permissions
[object]
fields
category
string
scopes
[string]
person
object
fields
email
string (email)
id
string (uuid)
name
string | null
platform *
string
platform_name
string
profile
"basic" | "standard" | "advanced" | "custom"
provider_revocation
string | null
tokens_revoked | nothing_live | revoke_failed | not_supported
revoked_at
string | null
scopes
[string]
status *
"pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected"
status_label
string
status_reason
string | null
terms_version
string | null
updated_at
string (date-time)
visibility
"personal" | "business"
withdrawn_at
string | null
withdrawn_by
"person" | "orchestrator" | nil
workspace_id
string | null
error
string
ok *
boolean
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
POST
/api/v1/connections/{id}/revoke
Revoke a connection
Revokes the live exchanged token and withdraws the connection's `connect` consent at Authpermit (Authpermit revokes every token it exchanged for it; kept while another live connection of the person to the same platform uses it). `unlink: true` (the person's own connection only) also unlinks their account on a federated sister and withdraws its `account` consent — "Disconnect and unlink my account"; without it the account stays linked. An admin's revoke of a business connection withdraws the `connect` consent only and never unlinks the person's account. Your own: disconnected; an admin's: revoked.
Scope: integrations:write
· Idempotency-Key
· connections.revoke
Parameter In Type Description
id * path string (uuid)
Request body application/json
unlink
boolean
Also unlink your account on the sister (your own connection only)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
connection *
Connection
fields
Connection
consent_id
string | null
consented_at
string | null
external_account_id
string | null
granted_scopes
[string]
health
"unknown" | "healthy" | "failing"
health_checked_at
string | null
id *
string (uuid)
inserted_at
string (date-time)
label
string
last_error
string | null
last_synced_at
string | null
last_used_at
string | null
method
string
next_action
"manage" | "reconnect" | "connect" | "continue" | "none"
pending_change
object | null
a permission change waiting for consent
permission_groups
[object]
fields
category
"read" | "write" | "delete" | "money" | "admin"
scopes
[object]
fields
description
string
scope
string
title
string
permissions
[object]
fields
category
string
scopes
[string]
person
object
fields
email
string (email)
id
string (uuid)
name
string | null
platform *
string
platform_name
string
profile
"basic" | "standard" | "advanced" | "custom"
provider_revocation
string | null
tokens_revoked | nothing_live | revoke_failed | not_supported
revoked_at
string | null
scopes
[string]
status *
"pending" | "awaiting_authorization" | "active" | "expiring" | "reauthorization_required" | "revoked" | "suspended" | "error" | "disconnected"
status_label
string
status_reason
string | null
terms_version
string | null
updated_at
string (date-time)
visibility
"personal" | "business"
withdrawn_at
string | null
withdrawn_by
"person" | "orchestrator" | nil
workspace_id
string | null
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example