# Import a private login-helper document.

Source: <https://everruns.com/docs/api/operations/import/>

POST

/v1/providers/{provider\_id}/chatgpt/import

Select code samplecURL (shell:curl)

```js
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);
}
```

```sh
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" }'
```

* Production APIapp.everruns.com/api/v1/providers/{provider\_id}/chatgpt/import

Verifies installation, signed identity, nonce, issuing client, and account binding before persisting credentials. Only the provider’s owner may import the document.

## Parameters

### Path Parameters

**provider\_id**

required

string

Personal provider ID

## 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

```plaintext
urn:uuid:00000000-0000-0000-0000-000000000001
```

**nonce**

required

Nonce from the same helper document, bound to its signed ID token.

string

##### Example

```plaintext
nonce-from-the-local-helper
```

## Responses

### 200

Personal connection import

Media typeapplication/json

##### Examplegenerated

```json
example
```

### 400

Invalid connection request

### 404

Provider not found or owned by another user

### 502

Provider exchange or revocation failed