canonical: https://jentic.com/apis/vk.com/vk

# VK API

VK (formerly VKontakte) is a Russian social network. This API provides access to user data, wall posts, friends, groups, photos, and messages. The API exposes 14 endpoints secured with oauth2 authentication.

## For AI agents

Programmatically get user profiles, search for users. Covers 14 operations with oauth2 authentication.

## Scope

Does not handle payments, crm, or developer tools - use for communications only.

## Capabilities

- Get user profiles
- Search for users
- Create a wall post
- Query and filter VK API records by parameters
- Monitor VK API operational status and events

## Use cases

### Communications Operations

Use the VK API to perform communications operations programmatically. The API provides 14 endpoints covering core functionality including get user profiles, search for users, get wall posts.

Example prompt: Call GET /users.get to get user profiles

### Automated Friends.Get Management

Automate friends.get operations by combining multiple VK API endpoints. Agents can search for users and then get wall posts in a single workflow.

Example prompt: Call GET /users.search to search for users, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call VK API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle oauth2 tokens manually.

Example prompt: Search Jentic for 'get user profiles', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | /users.get | Get user profiles |
| GET | /users.search | Search for users |
| GET | /wall.get | Get wall posts |
| POST | /wall.post | Create a wall post |
| GET | /friends.get | Get friends list |
| GET | /groups.get | Get user communities |
| GET | /groups.getById | Get communities by ID |
| GET | /photos.get | Get photos |

## Key resources

- **Friends.Get** — Operations for friends.get
- **Groups.Get** — Operations for groups.get
- **Groups.Getbyid** — Operations for groups.getById
- **Likes.Add** — Operations for likes.add
- **Messages.Gethistory** — Operations for messages.getHistory

## Why Jentic

- **Setup:** Wiring VK by hand means running its OAuth2 implicit flow against oauth.vk.com, tracking scopes like wall and friends, and calling method-style endpoints yourself. Through Jentic you install once, import VK from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** VK targets travel in request parameters rather than the URL path, so scope your agent to the operations it needs, such as users.get or wall.get. You choose the allowed set, so posting operations like wall.post are not included unless you add them.
- **Credential handling:** Your VK OAuth2 token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'get user profiles' or 'read a community wall', and Jentic returns the matching VK operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Twilio** — Alternative communications API
- **Sendgrid** — Alternative communications API
- **Pusher** — Complementary communications API

## FAQ

### What authentication does the VK API use?

The VK API uses OAuth 2.0 for authorization. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I get user profiles with the VK API?

Yes. Use the GET /users.get endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the VK API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I get user profiles through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'get user profiles'. Jentic returns the matching VK API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the VK API have?

The VK API exposes 14 endpoints covering friends.get, groups.get, groups.getbyid operations.

### Can I limit what my agent is allowed to do with the VK API?

Yes. Because you self-host Jentic One, your own rules decide which VK operations and credentials the agent may use, so you scope it to only the endpoints it needs, such as users.get, users.search, wall.get, friends.get, or groups.get. VK targets travel in request parameters rather than the URL path, so the operator controls the allowed set rather than relying on path patterns. Write operations like wall.post are not included unless you explicitly add them, and the stored OAuth 2.0 token is injected at execution time without entering the agent context.
