# Collaboration

## Lark Verify

<mark style="color:green;">`POST`</mark> `/lark`

#### Request Body

| Name                                      | Type   | Description    |
| ----------------------------------------- | ------ | -------------- |
| encrypt<mark style="color:red;">\*</mark> | String | Encrypted data |

{% tabs %}
{% tab title="200: OK " %}
```
- Body
  - **challenge** `string`
```
{% endtab %}

{% tab title="400: Bad Request " %}
```
- Body
    - **message** `string`
```
{% endtab %}
{% endtabs %}

## Lark OAuth2

<mark style="color:blue;">`GET`</mark> `/lark`

#### Query Parameters

| Name                                   | Type   | Description                       |
| -------------------------------------- | ------ | --------------------------------- |
| code<mark style="color:red;">\*</mark> | String | User login pre-authorization code |
| state                                  | Object | Custom context                    |
| state.action                           | String | custom action                     |
| state.locale                           | String | locale                            |

{% tabs %}
{% tab title="302: Found " %}

{% endtab %}

{% tab title="400: Bad Request " %}
```
- Body
    - **message** `string`
```
{% endtab %}

{% tab title="401: Unauthorized " %}
```
- Body
  - **code** `string` Bussiness code 
  - **message** `string`
```
{% endtab %}
{% endtabs %}
