# Url requests

## Basic api request

<mark style="color:green;">`POST`</mark> `https://ai-skin-server.herokuapp.com/url`

This endpoint allows you to send an image url (that's on the web) and get a response.

#### Headers

| Name          | Type   | Description  |
| ------------- | ------ | ------------ |
| Authorization | string | Your api key |

#### Request Body

| Name | Type   | Description                                  |
| ---- | ------ | -------------------------------------------- |
| url  | string | Send an image url that is publicly available |

{% tabs %}
{% tab title="200 Successfully found the specified image and processed it" %}

```
{
  "status": "ok",
  "type": "vitiligo",
  "confidence": 0.9997703433036804
}
```

{% endtab %}

{% tab title="400 Could not find that image." %}

```
{
  "status": "failed",
  "type": "Couldn't find that image on the web! Make sure it's not private"
}
```

{% endtab %}
{% endtabs %}

## Raw api request

<mark style="color:green;">`POST`</mark> `https://ai-skin-server.herokuapp.com/v1/raw`

Returns all the values of the skin conditions

#### Headers

| Name          | Type   | Description  |
| ------------- | ------ | ------------ |
| Authorization | string | Your api key |

#### Request Body

| Name | Type   | Description                              |
| ---- | ------ | ---------------------------------------- |
| url  | string | Send an image that is publicly available |

{% tabs %}
{% tab title="200 " %}

```
{
  "status": "ok",
  "raw": {
    "vitiligo": 0.9997703433036804,
    "rosacea": 2.3592284119486104e-34,
    "ringworm": 4.94471153069222e-16,
    "psoriasis": 0.00022965249081607908,
    "normal": 2.319375709624629e-34,
    "melesma": 6.153275199487652e-24,
    "melanoma": 1.5619000884314893e-11,
    "measles": 7.129576934190558e-22,
    "lupus": 1.4820884225209564e-20,
    "Keratosis-pilaris": 4.028082500872617e-23,
    "Cold_sore": 4.820047897192353e-37,
    "Chickenpox": 1.2663368878067385e-16,
    "Cellulitis": 1.0321511423327934e-9,
    "Blister": 6.94588213251723e-20,
    "Basal Skin Cancer": 1.1606009178952223e-27,
    "Actinic Keratosis": 1.796371592669159e-15,
    "Acne": 1.7337670063727675e-14
  }
}
```

{% endtab %}
{% endtabs %}


---

# 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://joshyzou.gitbook.io/skinapi/master.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.
