Bondery Share API
Share contacts via email
Share contacts via email
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/usebondery-com:usebondery-com-share-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
contact:
name: Bondery Support
url: https://usebondery.com
description: 'REST API for the Bondery application — a contact and relationship management platform.
## Authentication
Most endpoints require authentication via a Better Auth session cookie or a Bearer token (session JWT or long-lived API key).
**Session auth:** Sign in via the webapp or mobile app; send the OAuth access token as `Authorization: Bearer …` or rely on the webapp session cookie.
**API keys:** Create keys in Settings → API keys. Send `Authorization: Bearer bondery_key_…` on allowed integration routes (contacts, groups, tags, interactions, imports, share, geocode). Keys support `read` (GET/HEAD) or `full` access. See the authentication guide.
Endpoints under `/api/me/api-keys`, `/api/me/mcp-consents`, `/api/sync`, `/api/chat`, `/api/subscriptions`, and `/api/extension` do not accept API keys. AI assistants use `POST /mcp` with an MCP OAuth token, not this REST API.'
license:
name: AGPL-3.0
url: https://www.gnu.org/licenses/agpl-3.0.html
title: Bondery Share API
version: 1.0.0
servers:
- description: Local development server
url: https://api.usebondery.test
- description: Production server
url: https://api.usebondery.com
tags:
- description: Share contacts via email
name: Share
paths:
/contacts/share:
post:
summary: Share a contact
tags:
- Share
description: Share a contact via email with selected fields.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
message:
description: Optional note included in the share email
type: string
maxLength: 2000
personId:
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
description: Contact identifier to share
allOf:
- $ref: '#/components/schemas/ContactId'
recipientEmails:
minItems: 1
maxItems: 10
type: array
items:
description: Email address
type: string
format: email
pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
description: Email addresses that receive the shared contact
selectedFields:
type: array
items:
type: string
enum:
- name
- avatar
- headline
- phones
- emails
- location
- linkedin
- instagram
- facebook
- website
- whatsapp
- signal
- addresses
- notes
- importantDates
description: Contact field that can be included in a share
description: Contact fields to include in the share
sendCopy:
default: true
description: True to send a copy to the account owner
type: boolean
required:
- personId
- recipientEmails
- selectedFields
example:
message: Sharing Ada's contact card.
personId: 550e8400-e29b-41d4-a716-446655440000
recipientEmails:
- friend@example.com
selectedFields:
- name
- emails
- phones
sendCopy: true
security:
- bearerAuth: []
- apiKeyAuth: []
responses:
'200':
description: Contact shared successfully
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
content:
application/json:
example:
message: Operation completed
success: true
schema:
type: object
properties:
message:
description: Human-readable result message
type: string
success:
type: boolean
description: True when the operation completed
required:
- success
additionalProperties: false
'400':
description: Invalid request
content:
application/json:
example:
error:
agent_message: body.email Invalid input. Read details for the rejected fields, correct those arguments, then retry the call.
code: validation_error
doc_url: https://usebondery.com/docs/api/errors/validation_error
message: body.email Invalid input
request_id: 00000000-0000-0000-0000-000000000000
type: invalid_request_error
param: body.email
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Authentication required
content:
application/json:
example:
error:
agent_message: Unauthorized - Please log in. Reconnect the client and approve access, then retry the call.
code: auth_required
doc_url: https://usebondery.com/docs/api/errors/auth_required
message: Unauthorized - Please log in
request_id: 00000000-0000-0000-0000-000000000000
type: authentication_error
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Forbidden
content:
application/json:
example:
error:
agent_message: Forbidden. Read doc_url for the recovery steps, then retry the call.
code: api_key_route_forbidden
doc_url: https://usebondery.com/docs/api/errors/api_key_route_forbidden
message: Forbidden
request_id: 00000000-0000-0000-0000-000000000000
type: authorization_error
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Resource not found
content:
application/json:
example:
error:
agent_message: Contact not found. Call search_contacts with the person's name and retry with a personId from the results.
code: contact_not_found
doc_url: https://usebondery.com/docs/api/errors/contact_not_found
message: Contact not found
request_id: 00000000-0000-0000-0000-000000000000
type: not_found_error
schema:
$ref: '#/components/schemas/ApiError'
'426':
description: Upgrade required
content:
application/json:
example:
error:
agent_message: Sync protocol version mismatch. Read doc_url for the recovery steps, then retry the call.
code: sync_protocol_mismatch
doc_url: https://usebondery.com/docs/api/errors/sync_protocol_mismatch
message: Sync protocol version mismatch
request_id: 00000000-0000-0000-0000-000000000000
type: invalid_request_error
details:
clientVersion: null
requiredVersion: 2
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Too many requests
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
example:
error:
agent_message: Rate limit exceeded. Retry in 42 seconds. Wait for the number of seconds in retry_after, then retry the same call. Do not retry in a loop.
code: rate_limit_exceeded
doc_url: https://usebondery.com/docs/api/errors/rate_limit_exceeded
message: Rate limit exceeded. Retry in 42 seconds.
request_id: 00000000-0000-0000-0000-000000000000
type: rate_limit_error
retry_after: 42
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Internal server error
content:
application/json:
example:
error:
agent_message: Internal Server Error. Retry the call once with the same arguments. If it fails again, tell the user the request_id and report the failure.
code: internal_server_error
doc_url: https://usebondery.com/docs/api/errors/internal_server_error
message: Internal Server Error
request_id: 00000000-0000-0000-0000-000000000000
type: api_error
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Service unavailable
content:
application/json:
example:
error:
agent_message: Service unavailable. Retry the call once with the same arguments. If it fails again, tell the user the request_id and report the failure.
code: service_unavailable
doc_url: https://usebondery.com/docs/api/errors/service_unavailable
message: Service unavailable
request_id: 00000000-0000-0000-0000-000000000000
type: service_unavailable_error
schema:
$ref: '#/components/schemas/ApiError'
operationId: postContactsShare
x-operation-id-source: derived
components:
schemas:
ApiErrorBody:
type: object
properties:
agent_message:
type: string
minLength: 1
description: 'Recovery instruction for an AI agent: what failed, why, and how to fix the call. Always present.'
code:
type: string
description: Machine-readable error code
details:
description: Extra fields for this error
type: object
additionalProperties: {}
doc_url:
type: string
format: uri
description: Documentation URL for this error code
message:
type: string
description: Human-readable error message
param:
description: Request field that caused the error
type: string
request_id:
type: string
description: Identifier of this request
retry_after:
description: Seconds to wait before the next request
type: integer
maximum: 9007199254740991
exclusiveMinimum: 0
type:
type: string
enum:
- invalid_request_error
- authentication_error
- authorization_error
- not_found_error
- conflict_error
- rate_limit_error
- api_error
- service_unavailable_error
description: Error class
required:
- agent_message
- code
- doc_url
- message
- request_id
- type
additionalProperties: false
ContactId:
type: string
format: uuid
description: Contact person UUID
ApiError:
type: object
properties:
error:
description: Error payload
allOf:
- $ref: '#/components/schemas/ApiErrorBody'
required:
- error
additionalProperties: false
description: Error response with a human-readable message
example:
error:
agent_message: body.email Invalid input. Read details for the rejected fields, correct those arguments, then retry the call.
code: validation_error
doc_url: https://usebondery.com/docs/api/errors/validation_error
message: body.email Invalid input
request_id: 00000000-0000-0000-0000-000000000000
type: invalid_request_error
param: body.email
headers:
RateLimitPolicy:
description: Quota policy for this response. The value follows draft-ietf-httpapi-ratelimit-headers-11. This draft is not RFC 9237. The policy name is one of default, ai, enrich, geocode, export, import, health, mcp, csp_report, or not_found. q is the quota. w is the window in seconds.
example: '"default";q=300;w=60'
required: true
schema:
pattern: ^"(default|ai|enrich|geocode|export|import|health|mcp|csp_report|not_found)";q=\d+;w=\d+$
type: string
RetryAfter:
description: Delay in whole seconds. The API includes this header on HTTP 429 only. The value is an integer delay-seconds count. The value equals t in the RateLimit header. The value equals error.retry_after.
example: 47
required: true
schema:
minimum: 0
type: integer
RateLimit:
description: Remaining quota for this response. The value follows draft-ietf-httpapi-ratelimit-headers-11. This draft is not RFC 9237. The policy name matches the RateLimit-Policy header. r is the remaining requests. t is the seconds until reset. On HTTP 429, r is 0.
example: '"default";r=12;t=47'
required: true
schema:
pattern: ^"(default|ai|enrich|geocode|export|import|health|mcp|csp_report|not_found)";r=\d+;t=\d+$
type: string
securitySchemes:
apiKeyAuth:
bearerFormat: API Key
description: 'Long-lived API key created in Settings → API keys. Format: `bondery_key_<keyId>_<secret>`. Only works on integration routes (contacts, groups, tags, interactions, imports, share, geocode). Supports `read` (GET/HEAD) or `full` access.'
scheme: bearer
type: http
bearerAuth:
bearerFormat: JWT
description: 'Better Auth session access token (OAuth 2.1) from the webapp or mobile app. Send as `Authorization: Bearer <access_token>`.'
scheme: bearer
type: http