---
title: "Add Connection"
method: POST
path: "/network/add"
tags: ["Network"]
---

# Add Connection

`POST /network/add`

## Request

- Base URL: `https://api.blog2social.com/rest/v1.0`
- URL: `https://api.blog2social.com/rest/v1.0/network/add`
- Auth: none declared
- TypeScript: <https://skmtc.dev/blog2social/apis/blog2social-api/docs/network/add/post.ts> (a function with typed inputs; its response is checked against the schema)

Get a link and session_token to redirect the user in order to authorize a network

## Request body

- object
  - `service_token` string, required: The token for your service
  - `access_token` string, required: The access token for the authenticated user.
  - `network_id` integer, required: The ID of the social media network.
  - `network_type_id` integer, required: The network type ID: 0 = Profile, 1 = Page, 2 = Group.
  - `filter_level` string: The filter applied to shown groups and pages by their access level. Currently available for VK (network 17) with the value "admin".
  - `language` string: The language used for the authorization flow or form.

## Response `200`

OK

- object
  - `auth_link` string
  - `session_token` string
  - `expired_in` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Interal Server Error

## Changes

- **2026-10-14** `b1e63d18eef8`: 1 warning
  - removed the request property `service_conditions_id`
- **2026-09-11** `550af58dd037`: 1 info
  - added the new optional request property `filter_level`

[Operation history](https://skmtc.dev/blog2social/apis/blog2social-api/changes/network/add/post.md)

---

[API](https://skmtc.dev/blog2social/apis/blog2social-api.md) - [All operations](https://skmtc.dev/blog2social/apis/blog2social-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blog2social/apis/blog2social-api/revisions/25eaecaa1acb?raw)
