Relay Workspaces API

The Workspaces API from Relay, for workspaces.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 14

GET /api/v1/workspaces Lister les equipes #
GET /api/v1/workspaces/{workspace_id}/calls Historique d'appels #
GET /api/v1/workspaces/{workspace_id}/calls/{call_id} Détail d'un appel #
GET /api/v1/workspaces/{workspace_id}/calls/{call_id}/transcript Transcription d'un appel #
GET /api/v1/workspaces/{workspace_id}/voicemail Répondeur et voix de l'équipe #
GET /api/v1/workspaces/{workspace_id}/messages Historique SMS #
POST /api/v1/workspaces/{workspace_id}/messages Envoyer un SMS #
GET /api/v1/workspaces/{workspace_id}/contacts Lister / chercher des contacts #
POST /api/v1/workspaces/{workspace_id}/contacts Creer un contact #
PATCH /api/v1/workspaces/{workspace_id}/contacts/{contact_id} Remplacer un contact #
DELETE /api/v1/workspaces/{workspace_id}/contacts/{contact_id} Supprimer un contact #
GET /api/v1/workspaces/{workspace_id}/agenda Rappels et rendez-vous de l'equipe #
POST /api/v1/workspaces/{workspace_id}/agenda Creer un rappel ou un rendez-vous #
PATCH /api/v1/workspaces/{workspace_id}/agenda/{item_id} Modifier, terminer ou annuler un element #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/yesrelay-com:yesrelay-com-workspaces-api"
All apis
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.

Get an API 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 Specification

yesrelay-com-workspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Relay — API publique Workspaces API
  description: 'API REST de Relay, authentifiée par clé API (`Authorization: Bearer rk_live_...`, ou `X-Relay-Key: rk_live_...` quand un intermédiaire réserve `Authorization`). Les clés se créent dans l''application, sous Administration > Intégrations & API. Le serveur MCP (`POST /api/mcp`) utilise les mêmes clés. ## Erreurs


    Toutes les erreurs sortent en `application/problem+json` (RFC 7807) : `{type, title, status, detail, code, instance}`. **Basez votre logique sur `code`**, jamais sur `detail` (texte lisible, susceptible de changer). | `code` | Quand ça arrive |

    |---|---|

    | `invalid_api_key` | Clé absente, invalide ou révoquée. Vérifiez l''en-tête `Authorization: Bearer rk_live_...` (ou `X-Relay-Key: rk_live_...`). |

    | `expired_api_key` | La clé a dépassé sa date d''expiration. Créez-en une nouvelle. |

    | `rate_limited` | Débit du forfait dépassé. Attendez `Retry-After` secondes ; un lot MCP coûte autant que son nombre de messages. |

    | `plan_required` | Fonction absente du forfait. Le message nomme le forfait à prendre. |

    | `sms_not_enabled` | Le forfait n''inclut pas l''envoi de SMS. |

    | `contact_limit_reached` | Plafond de contacts du forfait atteint. La lecture reste possible. |

    | `budget_reached` | Votre plafond de dépenses télécom est atteint (réglage de votre compte, pas du forfait). |

    | `workspace_budget_reached` | Le plafond de dépenses propre à CETTE équipe est atteint (réglage de votre compte). |

    | `recipient_opted_out` | Ce numéro s''est désabonné en répondant STOP. Il se réabonne en répondant START ; vous ne pouvez pas le réabonner à sa place. |

    | `destination_blocked` | Le pays du destinataire n''est pas ouvert pour cette équipe (Canada et États-Unis le sont toujours). Le propriétaire ouvre d''autres pays dans l''application, onglet Appels. |

    | `sending_suspended` | Les envois de cette équipe sont suspendus après un emballement détecté. La réception continue ; le propriétaire relance depuis l''application. |

    | `daily_limit_reached` | Plafond quotidien de messages de l''équipe atteint (limite du client, ou limite automatique selon le forfait et le nombre de membres). |

    | `workspace_not_found` | L''équipe n''existe pas, ou n''appartient pas à l''organisation de la clé. |

    | `workspace_locked` | Équipe verrouillée : le forfait n''autorise pas autant de numéros actifs. |

    | `not_configured` | L''équipe n''a pas de compte télécom connecté. |

    | `call_not_found` | Aucun appel avec cet identifiant dans cette équipe. |

    | `transcript_not_found` | Pas de transcription pour cet appel. L''événement `transcription.ready` signale celles qui sont prêtes. |

    | `duplicate_number` | Le numéro appartient déjà à un autre contact de l''équipe. |

    | `invalid_cursor` | Le `cursor` doit venir d''un `next_cursor` renvoyé par l''API. |

    | `idempotency_key_reused` | Cette `Idempotency-Key` a servi pour un contenu différent. Utilisez une clé unique par message. |

    | `send_failed` | Le fournisseur télécom a refusé l''envoi. Le message est marqué `failed`. |

    | `invalid_agenda_item` | Saisie refusée : date illisible, passée ou à plus d''un an, durée hors bornes, type ou statut inconnu, numéro illisible. |

    | `assignee_not_in_team` | Le responsable (`assignee_user_id`) n''a pas accès à cette équipe. Les identifiants viennent de `GET /api/v1/members`. |

    | `agenda_item_not_found` | Aucun élément d''agenda actif avec cet identifiant dans cette équipe (un élément annulé n''est plus modifiable). |

    | `flow_not_found` | Aucun flow avec cet identifiant dans votre organisation. |

    | `flow_exists` | Ce numéro a déjà un flow : modifiez-le au lieu d''en créer un second. |

    | `flow_is_live` | Flow en production : désactivez-le dans l''application avant de le supprimer. |

    | `invalid_flow` | Graphe mal formé : type de bloc inconnu, lien pendant, ou bloc à plusieurs parents (l''arbre est strict). |

    | `flow_too_large` | Trop de blocs ou graphe trop lourd. Un message long va dans un audio, pas dans le graphe. |

    | `unknown_number` | Ce numéro n''appartient pas à votre organisation.'
  version: bf32bd81f944
security:
- bearerAuth: []
- relayKey: []
tags:
- name: Workspaces
paths:
  /api/v1/workspaces:
    get:
      summary: Lister les equipes
      description: Les equipes (un numero chacune). Leur `id` est exige par tous les autres endpoints.
      operationId: v1_workspaces_api_v1_workspaces_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/calls:
    get:
      summary: Historique d'appels
      description: 'Appels de l''equipe, du plus recent au plus ancien. Pagination par curseur : repassez `next_cursor` dans `cursor`. `has_transcript` indique si une transcription est disponible.'
      operationId: v1_calls_api_v1_workspaces__workspace_id__calls_get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/calls/{call_id}:
    get:
      summary: Détail d'un appel
      description: Un appel précis, même forme que dans la liste.
      operationId: v1_call_api_v1_workspaces__workspace_id__calls__call_id__get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: call_id
        in: path
        required: true
        schema:
          type: string
          title: Call Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/calls/{call_id}/transcript:
    get:
      summary: Transcription d'un appel
      description: 'Texte de la transcription, quand elle existe. C''est la contrepartie de l''événement webhook `transcription.ready` : sans cet endpoint, vous étiez prévenu qu''une transcription existait sans pouvoir la lire.'
      operationId: v1_transcript_api_v1_workspaces__workspace_id__calls__call_id__transcript_get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: call_id
        in: path
        required: true
        schema:
          type: string
          title: Call Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/voicemail:
    get:
      summary: Répondeur et voix de l'équipe
      description: 'Message et voix du répondeur de l''équipe, voix de la réceptionniste IA. `audio_ready` : le message lu par la voix choisie est prêt et joue tel quel ; sinon la voix par défaut le lit. Lecture seule : la configuration se fait dans l''application.'
      operationId: v1_voicemail_api_v1_workspaces__workspace_id__voicemail_get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/messages:
    get:
      summary: Historique SMS
      description: SMS de l'equipe, du plus recent au plus ancien. `contact` filtre sur un correspondant (E.164) pour obtenir une conversation.
      operationId: v1_messages_api_v1_workspaces__workspace_id__messages_get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          title: Cursor
      - name: contact
        in: query
        required: false
        schema:
          type: string
          title: Contact
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
    post:
      summary: Envoyer un SMS
      description: 'Envoie un SMS depuis le numero de l''equipe. **Envoi reel et facture.** Envoyez un en-tete `Idempotency-Key` (valeur unique par message, un UUID par exemple) : si le reseau coupe et que vous reessayez, le meme message ne partira pas deux fois. Le rejeu renvoie la reponse d''origine avec l''en-tete `Idempotent-Replay: true`. Sans cet en-tete, chaque appel envoie.'
      operationId: v1_send_sms_api_v1_workspaces__workspace_id__messages_post
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1SmsReq'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/contacts:
    get:
      summary: Lister / chercher des contacts
      description: Carnet de l'equipe. `q` cherche dans le prenom, le nom et l'entreprise.
      operationId: v1_contacts_api_v1_workspaces__workspace_id__contacts_get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: q
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Q
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
    post:
      summary: Creer un contact
      description: Le numero doit etre unique dans l'equipe (400 `duplicate_number` sinon). Emet l'evenement webhook `contact.created`. Soumis au plafond de contacts du forfait.
      operationId: v1_create_contact_api_v1_workspaces__workspace_id__contacts_post
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactReq'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/contacts/{contact_id}:
    patch:
      summary: Remplacer un contact
      description: 'REMPLACE les champs du contact : ce qui n''est pas envoye est efface. Memes regles que l''application (normalisation des numeros, unicite).'
      operationId: v1_update_contact_api_v1_workspaces__workspace_id__contacts__contact_id__patch
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: contact_id
        in: path
        required: true
        schema:
          type: string
          title: Contact Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactReq'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
    delete:
      summary: Supprimer un contact
      description: Suppression definitive. L'historique d'appels et de SMS du numero n'est PAS supprime.
      operationId: v1_delete_contact_api_v1_workspaces__workspace_id__contacts__contact_id__delete
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: contact_id
        in: path
        required: true
        schema:
          type: string
          title: Contact Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/agenda:
    get:
      summary: Rappels et rendez-vous de l'equipe
      description: '`status` : open (defaut), done ou all. `from` / `to` : bornes ISO 8601 sur l''heure de l''element. `limit` : 50 par defaut, 200 au plus ; paginer par fenetre de dates.'
      operationId: v1_list_agenda_api_v1_workspaces__workspace_id__agenda_get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: open
          title: Status
      - name: contact
        in: query
        required: false
        schema:
          type: string
          title: Contact
      - name: from
        in: query
        required: false
        schema:
          type: string
          title: From
      - name: to
        in: query
        required: false
        schema:
          type: string
          title: To
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
    post:
      summary: Creer un rappel ou un rendez-vous
      description: '`starts_at` : ISO 8601 avec fuseau. Sans `assignee_user_id`, l''element est confie au proprietaire de l''organisation. Emet l''evenement webhook `agenda.created`.'
      operationId: v1_create_agenda_item_api_v1_workspaces__workspace_id__agenda_post
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgendaItemReq'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
  /api/v1/workspaces/{workspace_id}/agenda/{item_id}:
    patch:
      summary: Modifier, terminer ou annuler un element
      description: '`status` : done, open (reouvrir) ou canceled (annulation, definitive). Les champs absents ne changent pas.'
      operationId: v1_update_agenda_item_api_v1_workspaces__workspace_id__agenda__item_id__patch
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: item_id
        in: path
        required: true
        schema:
          type: string
          title: Item Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgendaItemPatchReq'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Workspaces
components:
  schemas:
    SocialEntry:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    AgendaItemReq:
      properties:
        kind:
          type: string
          maxLength: 20
          title: Kind
        starts_at:
          type: string
          maxLength: 40
          title: Starts At
        title:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Title
        notes:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Notes
        duration_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Min
        contact:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Contact
        call_id:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Call Id
        assignee_user_id:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Assignee User Id
      type: object
      required:
      - kind
      - starts_at
      title: AgendaItemReq
    ContactReq:
      properties:
        first_name:
          type: string
          maxLength: 80
          minLength: 1
          title: First Name
        last_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Name
        company:
          anyOf:
          - type: string
          - type: 'null'
          title: Company
        job_title:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Job Title
        website:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Website
        avatar_url:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Avatar Url
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
        phone_numbers:
          items:
            $ref: '#/components/schemas/PhoneEntry'
          type: array
          minItems: 1
          title: Phone Numbers
        emails:
          items:
            $ref: '#/components/schemas/EmailEntry'
          type: array
          title: Emails
        tags:
          items:
            $ref: '#/components/schemas/TagEntry'
          type: array
          title: Tags
        socials:
          items:
            $ref: '#/components/schemas/SocialEntry'
          type: array
          title: Socials
      type: object
      required:
      - first_name
      - phone_numbers
      title: ContactReq
    PhoneEntry:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    TagEntry:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    AgendaItemPatchReq:
      properties:
        title:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Title
        notes:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Notes
        starts_at:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Starts At
        duration_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Min
        contact:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Contact
        assignee_user_id:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Assignee User Id
        status:
          anyOf:
          - type: string
            maxLength: 20
          - type: 'null'
          title: Status
      type: object
      title: AgendaItemPatchReq
    V1SmsReq:
      properties:
        to:
          type: string
          maxLength: 30
          minLength: 3
          title: To
        body:
          type: string
          maxLength: 1600
          minLength: 1
          title: Body
      type: object
      required:
      - to
      - body
      title: V1SmsReq
    EmailEntry:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: rk_live_...
      description: 'Clé API Relay dans Authorization: Bearer.'
    relayKey:
      type: apiKey
      in: header
      name: X-Relay-Key
      description: Même clé API, pour les intermédiaires qui réservent Authorization.