> For the complete documentation index, see [llms.txt](https://help.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.contouron.com/api/openapi-reference/accounts.md).

# Accounts

> For the complete documentation index, see [llms.txt](https://help.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.contouron.com/api/openapi-reference/accounts.md).

## Accounts

Endpoints related to user accounts and social media accounts.

### List Pinterest boards

> Lists boards owned by a connected Pinterest account. Returns the id and name of each board so callers can pick the boardId required when creating a Pinterest pin via contouron\_create\_post.

```json
{"openapi":"3.0.3","info":{"title":"Contouron API","version":"2.0.0"},"tags":[{"name":"accounts","description":"Endpoints related to user accounts and social media accounts."}],"servers":[{"url":"https://backend.contouron.com","description":"Contouron API Server"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"contouron-api-key","in":"header"}}},"paths":{"/v2/social/pinterest/boards":{"get":{"summary":"List Pinterest boards","tags":["accounts"],"description":"Lists boards owned by a connected Pinterest account. Returns the id and name of each board so callers can pick the boardId required when creating a Pinterest pin via contouron_create_post.","parameters":[{"schema":{"type":"string"},"in":"query","name":"accountId","required":true,"description":"Contouron Pinterest account id, returned from /users/me/accounts."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"description":"Pinterest boards owned by the connected account. Capped at 250 (the Pinterest page_size limit).","type":"array","items":{"type":"object","properties":{"id":{"description":"Pinterest board id. Pass this as boardId when creating a pin.","type":"string"},"name":{"description":"Display name of the board on Pinterest.","type":"string"}},"required":["id","name"]}}},"required":["items"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Unauthorized","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"Unauthorized access","type":"string"}},"required":["message"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"description":"Not found","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"Resource not found","type":"string"}},"required":["message"]}}}},"422":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"}},"required":["message"]}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"description":"Server error","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"An error occurred","type":"string"}},"required":["message"]}}}}}}}}}
```

### Get current user information

> Fetches the current user's information, including subscription status and API key if available.

```json
{"openapi":"3.0.3","info":{"title":"Contouron API","version":"2.0.0"},"tags":[{"name":"accounts","description":"Endpoints related to user accounts and social media accounts."}],"servers":[{"url":"https://backend.contouron.com","description":"Contouron API Server"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"contouron-api-key","in":"header"}}},"paths":{"/v2/users/me":{"get":{"summary":"Get current user information","tags":["accounts"],"description":"Fetches the current user's information, including subscription status and API key if available.","responses":{"200":{"description":"Current user information","content":{"application/json":{"schema":{"description":"Current user information","type":"object","properties":{"id":{"type":"string"},"subscriptionStatus":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"subscriptionPlan":{"type":"string","enum":["starter","creator","agency"]}},"required":["id","subscriptionStatus","apiKey","subscriptionPlan"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Unauthorized","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"Unauthorized access","type":"string"}},"required":["message"]}}}}}}}}}
```

### Get current user accounts

> Fetches the current user's social media accounts. Optionally filter by platform.

```json
{"openapi":"3.0.3","info":{"title":"Contouron API","version":"2.0.0"},"tags":[{"name":"accounts","description":"Endpoints related to user accounts and social media accounts."}],"servers":[{"url":"https://backend.contouron.com","description":"Contouron API Server"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"contouron-api-key","in":"header"}}},"paths":{"/v2/users/me/accounts":{"get":{"summary":"Get current user accounts","tags":["accounts"],"description":"Fetches the current user's social media accounts. Optionally filter by platform.","parameters":[{"schema":{"type":"string","enum":["twitter","instagram","linkedin","facebook","tiktok","pinterest","threads","bluesky","youtube","other"]},"in":"query","name":"platform","required":false,"description":"Social media platform"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"description":"List of social media accounts","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"description":"Social media platform","type":"string","enum":["twitter","instagram","linkedin","facebook","tiktok","pinterest","threads","bluesky","youtube","other"]},"fullname":{"type":"string"},"username":{"type":"string"}},"required":["id","platform","fullname","username"]}}},"required":["items"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Unauthorized","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"Unauthorized access","type":"string"}},"required":["message"]}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"description":"Server error","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"An error occurred","type":"string"}},"required":["message"]}}}}}}}}}
```

### Get current user subaccounts

> Fetches the current user's subaccounts for a specific account. Subaccounts are typically used for platforms like Facebook where a user can have multiple pages.

```json
{"openapi":"3.0.3","info":{"title":"Contouron API","version":"2.0.0"},"tags":[{"name":"accounts","description":"Endpoints related to user accounts and social media accounts."}],"servers":[{"url":"https://backend.contouron.com","description":"Contouron API Server"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"contouron-api-key","in":"header"}}},"paths":{"/v2/users/me/accounts/{accountId}/subaccounts":{"get":{"summary":"Get current user subaccounts","tags":["accounts"],"description":"Fetches the current user's subaccounts for a specific account. Subaccounts are typically used for platforms like Facebook where a user can have multiple pages.","parameters":[{"schema":{"type":"string"},"in":"path","name":"accountId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"name":{"type":"string"}},"required":["id","accountId","name"]}}},"required":["items"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Unauthorized","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"Unauthorized access","type":"string"}},"required":["message"]}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"description":"Server error","type":"object","properties":{"code":{"type":"number"},"reqId":{"description":"Request ID for tracking","type":"string"},"message":{"description":"An error occurred","type":"string"}},"required":["message"]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.contouron.com/api/openapi-reference/accounts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
