Référence / Account Management / Connect an API-key integration
Connect an API-key integration
Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.
Connect (or re-key) an API-key integration so signals can push leads to it.
PUT https://api.rodz.io/api/v1/integrations/{provider}
Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.
Lire la description complète
Connect (or re-key) an API-key integration so signals can push leads to it. The key is validated with the provider before it’s stored, and encrypted at rest.
Input: apiKey (required), optional label; Gong also takes secret + baseUrl.
Output: the provider’s connection status.
Providers: instantly, lemlist, smartlead, emelia, lagrowthmachine, gong, claap. OAuth providers (hubspot, pipedrive, google_sheets, slack) return 400 USE_DASHBOARD_OAUTH — connect them once in the dashboard, then select them per signal via destinations.
Errors: 422 INVALID_API_KEY when the key is refused. When the key could not be checked this time (the tool did not answer), the answer is the same 422 INVALID_API_KEY, nothing is saved, and it is marked: "reason": "unavailable" in detail.error and the response header X-Lookup-Status: unavailable. The key itself was not refused: retry later. A refused key never carries either mark.
Authentification et en-têtes
Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.
Authorization requis Bearer suivi de votre clé d’API, par exemple Bearer USR_...
Content-Type requis application/json
Paramètres
provider string path requis Corps de la requête PublicIntegrationConnect
apiKey string requis The provider API key.
-
minLength: 1
label string facultatif accepte null Optional name to tell apart multiple connected accounts of this provider.
secret string facultatif accepte null Gong only: signing secret.
baseUrl string facultatif accepte null Gong only: API base URL.
Réponses
200 OK Schéma de la réponse · PublicIntegrationStatus
provider string requis Provider id to use in destinations + connect URLs.
name string requis Human-readable provider name.
connected boolean requis Whether this provider is connected on your account.
label string facultatif accepte null Account label, if set.
connectVia string requis How to connect: "api" (key) or "dashboard" (OAuth).
updatedAt string facultatif accepte null 422 INVALID_API_KEY: the API key was refused, or could not be checked this time (marked reason: unavailable and X-Lookup-Status: unavailable). VALIDATION_ERROR: the request body is invalid. Nothing is saved. 429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.