> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-parschat.parstechai.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-parschat.parstechai.com/_mcp/server.

# Open an Instagram connection

GET https://api-chat.parstechai.com/v1/connect/{token}

The `authorisation_url` of a pending Instagram channel, as `POST /robots/{robot_id}/channels` returns it.

You never call this from your server and never build the URL: send the page owner's browser to `authorisation_url` exactly as returned. It needs no API key and continues to Instagram's login. Opening it again (a refresh, a second tab) works until the handshake completes or expires; after that it answers `410`, and you connect the channel again for a new link.

Reference: https://docs-parschat.parstechai.com/api-reference/channels/open-instagram-connection

## Request

### Path parameters

- `token` (string, required) — The last segment of `authorisation_url`. It is opaque: do not parse or build it.

## Errors

### 410 Gone Error

Unknown, superseded or expired. Connect the channel again for a new link.

- `error` (ErrorError, optional)

## Types

### ErrorError

- `code` (string, optional) — Stable machine-readable code. Branch on this, not on the message.
- `message` (string, optional) — Human-readable explanation. Wording may change.
- `request_id` (string, optional) — Log this. It is what lets support find your exact request.
- `details` (map from string to any, optional) — Machine-readable context for the code. On `capacity_exhausted` it carries `occupied`, `requested` and `capacity`; on `rate_limited`, `limit_per_minute` and `window_seconds`.

## Examples

**SDK Code**

```python
import requests

url = "https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api-chat.parstechai.com/v1/connect/Yk3pQ9vT2mW8xR4nL6cH1sJ7dF0aZ5eU3gB9kP2qV8w")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```