> For the complete documentation index, see [llms.txt](https://developers.zortout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.zortout.com/partner/authentication.md).

# Authentication

Your platform can connect to ZORT API with several accounts. Your users can login by ZORT account and your platform can retrieve ZORT key (storename, apikey and apisecret) to connect ZORT API.

### Start Development

You will get **"Partner Key"** for using authentication via your email after we approve your application.

### Retrieve Application Key and Application Secret

1. Redirect to Authentication URL with Post method.

```
// Example Form

<html>
<body>
<form method="post" action="https://secure.zortout.com/Connect/Register"/>
partnersecretkey : <input type="text" name="partnersecretkey" value=""/><br/>
token : <input type="text" name="token" value=""/><br/>
returnurl : <input type="text" name="returnurl" value=""/><br/> 
<input type="submit"/>
</form>
</body>
</html>
```

2\. The system will redirect to returnurl after users login successfully with Post method and key parameters. (storename, apikey, apisecret)

## Callback URL

<mark style="color:green;">`POST`</mark> `{returnurl}`

#### Query Parameters

| Name                                     | Type   | Description                |
| ---------------------------------------- | ------ | -------------------------- |
| token1<mark style="color:red;">\*</mark> | String | storename                  |
| token2<mark style="color:red;">\*</mark> | String | apikey                     |
| token3<mark style="color:red;">\*</mark> | String | apisecret                  |
| token4                                   | String | Account name               |
| token5<mark style="color:red;">\*</mark> | String | Your token (reference key) |
