Import a private login-helper document.
POST
/v1/providers/{provider_id}/chatgpt/import
const url = 'https://app.everruns.com/api/v1/providers/example/chatgpt/import';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"auth":{},"host_id":"urn:uuid:00000000-0000-0000-0000-000000000001","nonce":"nonce-from-the-local-helper"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.everruns.com/api/v1/providers/example/chatgpt/import \ --header 'Content-Type: application/json' \ --data '{ "auth": {}, "host_id": "urn:uuid:00000000-0000-0000-0000-000000000001", "nonce": "nonce-from-the-local-helper" }'Verifies installation, signed identity, nonce, issuing client, and account binding before persisting credentials. Only the provider’s owner may import the document.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”provider_id
required
string
Personal provider ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Private credential handoff emitted by the local login helper for this installation.
object
auth
required
Credential document emitted by the local helper; accepted only after ID-token validation.
object
host_id
required
Installation identifier from the setup document downloaded for this provider.
string
Example
urn:uuid:00000000-0000-0000-0000-000000000001nonce
required
Nonce from the same helper document, bound to its signed ID token.
string
Example
nonce-from-the-local-helperResponses
Section titled “ Responses ”Personal connection import
Media typeapplication/json
Examplegenerated
exampleInvalid connection request
Provider not found or owned by another user
Provider exchange or revocation failed