> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mygigsters.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get KYC magic link

> Generates a secure, pre-authenticated hosted KYC onboarding link for a connected account. Partners can send this link to their clients or talent so they can complete identity checks, business verification, and banking details directly...

### Headers

**x-api-version** `string` *required*

Target API version (e.g. `1.2`).

### Path Parameters

**account\_id** `string` *required*

The unique client UUID of the connected account (e.g. `4407c3ba-10c9-4822-9f51-c2c96692f8d7`).

### Response Body

**success** `boolean`

Indicates whether the magic link generation succeeded (`true`).

**message** `string`

Confirmation message (e.g. `"Magic link generated successfully"`).

**account\_id** `string`

The unique client UUID of the connected account.

**kyc\_magic\_link** `string`

A pre-authenticated, secure hosted onboarding URL for the connected account holder to complete their identity, business details, and KYC verification seamlessly.

### Response Codes

| Code | Description |
| - | - |
| 200 | Magic link generated successfully. |
| 401 | Unauthorized. Missing, expired, or invalid partner Bearer token. |
| 404 | Not Found. Connected account with the provided myGigsterId does not exist. |
| 500 | Internal Server Error. |

```bash cURL theme={null}
curl -X GET https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link \
  -H "Authorization: Bearer <accessToken>" \
  -H "X-API-Version: 1.2"
```

```javascript Node.js theme={null}
const response = await fetch("https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link", {
  method: "GET",
  headers: {
    Authorization: "Bearer <accessToken>",
    "X-API-Version": "1.2",
  },
});

const data = await response.json();
console.log(data);
```

```python Python theme={null}
import requests

response = requests.get(
    "https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link",
    headers={
        "Authorization": "Bearer <accessToken>",
        "X-API-Version": "1.2",
    },
)

print(response.json())
```

```ruby Ruby theme={null}
require "net/http"
require "json"
require "uri"

uri = URI("https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <accessToken>"
request["X-API-Version"] = "1.2"

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end

puts JSON.parse(response.body)
```

```php PHP theme={null}
<?php

$ch = curl_init("https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link");

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer <accessToken>",
        "X-API-Version: 1.2",
    ],
]);

$response = curl_exec($ch);
curl_close($ch);

print_r(json_decode($response, true));
```

```java Java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Example {
    public static void main(String[] args) throws Exception {
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link"))
            .header("Authorization", "Bearer <accessToken>")
            .header("X-API-Version", "1.2")
            .method("GET", HttpRequest.BodyPublishers.noBody())
            .build();

        HttpResponse<String> response = HttpClient.newHttpClient()
            .send(request, HttpResponse.BodyHandlers.ofString());

        System.out.println(response.body());
    }
}
```

```go Go theme={null}
package main

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

func main() {
	req, err := http.NewRequest("GET", "https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer <accessToken>")
	req.Header.Set("X-API-Version", "1.2")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	data, _ := io.ReadAll(res.Body)
	fmt.Println(string(data))
}
```

```csharp .NET theme={null}
using System.Net.Http.Headers;
using System.Text;

using var client = new HttpClient();

var request = new HttpRequestMessage(HttpMethod.Get, "https://qa-payments.mygigsters.com.au/api/v1/connected-account/4407c3ba-10c9-4822-9f51-c2c96692f8d7/magic-link");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", "<accessToken>");
request.Headers.Add("X-API-Version", "1.2");

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

```json Response theme={null}
{
  "success": true,
  "message": "Magic link generated successfully",
  "account_id": "4407c3ba-10c9-4822-9f51-c2c96692f8d7",
  "kyc_magic_link": "https://payments.mygigsters.com.au/client/kyc/eyJhbGciOiJSUzI1NiIs......"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.