---
updatedAt: 2026-08-11T08:28:09.000Z
agentTools:
  projectIndex: https://developer.joinblink.com/llms.txt
---

# Add User Linked Account

Create a linked account for a user

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "blink-api-v2",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://api.joinblink.com/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/user/{user_id}/linked-accounts": {
      "post": {
        "summary": "Add User Linked Account",
        "description": "Create a linked account for a user",
        "operationId": "add-user-linked-account",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "Id of the user that the linked account will be added to",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "auth_id"
                ],
                "properties": {
                  "auth_id": {
                    "type": "string",
                    "description": "Auth Id for your integration"
                  },
                  "expiry": {
                    "type": "string",
                    "description": "The expiry time for the integration token",
                    "format": "date-time"
                  },
                  "external_account_id": {
                    "type": "string",
                    "description": "An identifier for the account in the integration service"
                  },
                  "refresh_token": {
                    "type": "string",
                    "description": "The OAuth2 refresh token that can be sent to the integrating service to refresh the user's access token"
                  },
                  "requires_reauthentication": {
                    "type": "boolean",
                    "description": "Whether or not the linked account requires the user to reauthenticate",
                    "default": false
                  },
                  "token": {
                    "type": "string",
                    "description": "The OAuth 2 access_token that can be used to authorize requests to the integrating service"
                  },
                  "internal_account_id": {
                    "type": "string",
                    "description": "A field to store some extra identifying information for the integration account"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": \"CREATED\",\n  \"message\": \"Created\",\n  \"data\": {\n    \"id\": \"la-a85e1b0a-3cd1-4ec4-9e1b-0a3cd18ec484\",\n    \"user_id\": \"u-35442350-5320-11e6-ba50-adce5416da51\",\n    \"token\": \"E7e2aB1cD20483\",\n    \"refresh_token\": \"2De2aAfD219DCcA\",\n    \"expiry\": \"2019-02-22T12:24:53.003000Z\",\n    \"external_account_id\": \"john@joinblink.com\",\n    \"requires_reauthentication\": false,\n    \"service_internal_account_id\": \"john.doe\"\n  },\n  \"request_id\": \"RQ-e4041554-39d9-11e9-b261-7719d341c979\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "CREATED"
                    },
                    "message": {
                      "type": "string",
                      "example": "Created"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "la-a85e1b0a-3cd1-4ec4-9e1b-0a3cd18ec484"
                        },
                        "user_id": {
                          "type": "string",
                          "example": "u-35442350-5320-11e6-ba50-adce5416da51"
                        },
                        "token": {
                          "type": "string",
                          "example": "E7e2aB1cD20483"
                        },
                        "refresh_token": {
                          "type": "string",
                          "example": "2De2aAfD219DCcA"
                        },
                        "expiry": {
                          "type": "string",
                          "example": "2019-02-22T12:24:53.003000Z"
                        },
                        "external_account_id": {
                          "type": "string",
                          "example": "john@joinblink.com"
                        },
                        "requires_reauthentication": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "service_internal_account_id": {
                          "type": "string",
                          "example": "john.doe"
                        }
                      }
                    },
                    "request_id": {
                      "type": "string",
                      "example": "RQ-e4041554-39d9-11e9-b261-7719d341c979"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```