Connections

Change who can use a connection

Changed on

Change who can use an app connection without disconnecting it: its credential, tool settings and history stay as they are. everyone shares it with the whole team, only_me limits it to the caller, and members limits it to the listed teammates (include yourself to keep using it). Only those people see its tools, in their chats and in the tasks they created. A personal connection always stays usable by its owner, and naming members shares it with them too. It cannot be opened to everyone, because its credential belongs to its owner; connect it again as a Team connection for that. An account admin changes a team connection; only its owner changes a personal one. Only app connections support this. When Crevio's agent calls this, the user approves it first.

put/connections/{id}/access

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

Unified public connection id, as returned by GET /connections/connected. Opaque — pass it back verbatim.

Request body

object required
access, 'everyone' | 'only_me' | 'members' required

Who can use the connection: the whole team, only you, or the people in members.

members, string[]

Emails of account members who can use it, for members. Replaces the current list.

Response

The connection with its new access

Connection required
object, string required
id, string required
kind, string required
provider, string required
app, string required
app_name, string nullable required
label, string nullable required
status, 'pending' | 'off' | 'reconnect_required' | 'error' | 'active' required

pending: setup never finished. off: switched off on the account. reconnect_required: its sign-in or key stopped working; connect it again. error: the provider refuses it for a reason reconnecting won't fix (see status_detail). active: usable.

status_detail, string nullable required

Why it isn't active, in the provider's words, when the provider gives a reason.

disconnectable, boolean required
callable, boolean required
access, string required
members, string[] nullable required
connected_at, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision