> For the complete documentation index, see [llms.txt](https://docs.v2.like.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.v2.like.co/developer/likecoin-api/calling-api.md).

# Calling API

{% hint style="warning" %}
The documentation is designed for Liker Land and LikeCoin v2. For information on [3ook.com](https://3ook.com/) and LikeCoin v3, please visit [docs.3ook.com](https://docs.3ook.com) and [dao.like.co](https://dao.like.co/).
{% endhint %}

For chain API. please refer to [chain API section](/developer/likecoin-chain-api/rpc-api.md).

### Introduction

There are two kinds of API endpoint, public API and authenticated API.  Public APIs can be called directly. Authenticated API requires additional OAuth 2.0 permission grant. For how to authenticate via OAuth 2.0 flow, please refer to `Authetication` session. &#x20;

Unless otherwise specified, all LikeCoin APIs accept and reply`application/json` as request and response body. Authenticated API takes an extra `Authorization` header with payload `Bearer {{token}}`.

### API Endpoints

Production endpoint: `https://api.like.co`&#x20;

Development endpoint: `https://api.testnet.like.co`\
\
Please refer to `Reference` session for a list of available API.<br>

### Obtaining OAuth client ID and secret for authenticated API

Please contact `team@like.co` for obtaining OAuth client id/secret, and scope/redirect\_uri whitelist.


---

# 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://docs.v2.like.co/developer/likecoin-api/calling-api.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.
