---
# System prepended metadata

title: Instabulk api

---

# Instabulk api
**base url** : `http://api.instabulk.ir`
***send token in all requests in 'Token' header***
`Token: aaaa-bbbbbbb-ccccc-ddddddd`

## `POST /v1/orders`
make new like order

**Auth required** : YES

**sample request body**

```json
{
    "link": "[valid instagram link url (https://www.instagram.com/p/B17AJWxB-D1/?utm_source=ig_web_copy_link)]",
    "count": "[like count]"
}
```

## Success Response

**Code** : `200 OK`

**Content example**

```json
{}
```

## Error Response

**Condition** : If 'link' is invalid or empty, If 'count is less than minimum order limit or more than maximum limit'

**Code** : `400 BAD REQUEST`

**Content** :

```json
{"error": {"[error description]"}
```
----
## `GET /v1/orders`
get orders list

**Auth required** : YES

**sample request body**

```json
{
    "page": "[page numer]",
    "per_page": "[count of orders per page]"
}
```

## Success Response

**Code** : `200 OK`

**Content example**

```json
{
    "orders": [
        {
            "link": "[link of like post in instagram]",
            "media_id": "[post media_id]",
            "count": "[count of order]",
            "status": "[order status (pending, in_progress, done, error)]",
            "reason": "[error reason (private, delete)]"
        }
    ],
    "pagination":{
        "current_page": "/v1/orders?page=1&per_page=20",
        "next_page": "/v1/orders?page=2&per_page=20",
        "total_pages": 100,
        "total_count": 1200
    }
}
```
----
## `GET /v1/users/me`
get self user info

**Auth required** : YES

**sample request body**

```json
{}
```

## Success Response

**Code** : `200 OK`

**Content example**

```json
{
    
    "phone": "09123456789",
    "token": "87987sd-werwerwers-2342-sdfwerwer",
    "coins": 500000,
    "disabled": false
    
}
```