# Fetch Channels

#### Fetch Channels Endpoint

The Fetch **Channels Endpoint** allows users to retrieve a list of their integrated social media accounts linked with MarketingBlocks. This endpoint is designed to manage and organize users' marketing content across different platforms efficiently.

When accessed, it returns detailed information regarding each connected channel, including the platform type, account name, and integration status.

⚠️ **Permission Requirement:** This endpoint requires the `social-read-channels` permission on the API token to function.

Ideal for marketers aiming to streamline their social media campaigns through a single interface.

## GET /api/v1/social-sparks/channels

> Get Channels

```json
{"openapi":"3.0.0","info":{"title":"Marketingblocks API","version":"1.0.0"},"servers":[{"url":"app.marketingblocks.ai"}],"paths":{"/api/v1/social-sparks/channels":{"get":{"summary":"Get Channels","parameters":[{"name":"types","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"headers":{"0":{"schema":{"type":"string"}},"Date":{"schema":{"type":"string"}},"Server":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}},"X-Powered-By":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}},"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"schema":{"type":"string"}},"Access-Control-Allow-Credentials":{"schema":{"type":"integer"}},"Access-Control-Max-Age":{"schema":{"type":"integer"}},"Content-Security-Policy":{"schema":{"type":"string"}},"Access-Control-Allow-Headers":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"Keep-Alive":{"schema":{"type":"string"}},"Connection":{"schema":{"type":"string"}},"Transfer-Encoding":{"schema":{"type":"string"}},"Content-Type":{"schema":{"type":"string"}}},"description":"Response","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"object","properties":{"current_page":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"channel_id":{"type":"integer"},"platform":{"type":"string"},"account_name":{"type":"string"},"avatar":{"type":"string","format":"uri"}}}},"first_page_url":{"type":"string","format":"uri"},"from":{"type":"integer"},"last_page":{"type":"integer"},"last_page_url":{"type":"string","format":"uri"},"next_page_url":{"nullable":true},"path":{"type":"string","format":"uri"},"per_page":{"type":"integer"},"prev_page_url":{"nullable":true},"to":{"type":"integer"},"total":{"type":"integer"}}},"status":{"type":"boolean"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.marketingblocks.ai/agentic-ai-docs/api-reference/social-growth-engine/channels/fetch-channels.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
