# Create a connect link (/en/reference/connect/create-connect-link)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "createConnectLink",
    "tags": [
      "Connect"
    ],
    "summary": "Create a connect link",
    "description": "A page where your client connects their accounts into the profile ({id} may be its external_id). redirect_url's origin must be allowed in /v1/connect/redirect-origins (422 redirect_origin_not_allowed); state comes back unchanged.\n\nRequires the write scope. Owner key or session only: a profile key gets 403 owner_key_required.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    ],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/CreateConnectLinkRequest"
          }
        }
      }
    },
    "responses": {
      "201": {
        "description": "The link.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ConnectLink"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```