# Image

Fetches details for a single image.

<mark style="color:blue;">`GET`</mark> `https://service-cloudflare-zvqgeah36q-uc.a.run.app/media/image/:id/`

#### Query Parameters

| Name                                               | Type   | Description               |
| -------------------------------------------------- | ------ | ------------------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4                      |
| connection\_name<mark style="color:red;">\*</mark> | String | intrapreneur-cloudflare-1 |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | U2Fsd...    |

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
{
    "result": {
        "id": "01469ed2-2409-4fdd-72f7-400c09d5a600",
        "filename": "download (4).jpeg",
        "uploaded": "2022-08-03T02:11:33.820Z",
        "requireSignedURLs": false,
        "variants": [
            "https://imagedelivery.net/46JjFsbElfX2IL16wJFTCA/01469ed2-2409-4fdd-72f7-400c09d5a600/public",
            "https://imagedelivery.net/46JjFsbElfX2IL16wJFTCA/01469ed2-2409-4fdd-72f7-400c09d5a600/thumbnail",
            "https://imagedelivery.net/46JjFsbElfX2IL16wJFTCA/01469ed2-2409-4fdd-72f7-400c09d5a600/sthumbnail",
            "https://imagedelivery.net/46JjFsbElfX2IL16wJFTCA/01469ed2-2409-4fdd-72f7-400c09d5a600/originalSize"
        ]
    },
    "success": true,
    "errors": [],
    "messages": []
}
```

{% endtab %}
{% endtabs %}

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

```shell
curl --location --request GET 'https://service-cloudflare-zvqgeah36q-uc.a.run.app/media/image/01469ed2-2409-4fdd-72f7-400c09d5a600?name=ft-4&connection_name=intrapreneur-cloudflare-1' \
--header 'x-api-key: U2Fsd...'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://service-cloudflare-zvqgeah36q-uc.a.run.app/media/image/01469ed2-2409-4fdd-72f7-400c09d5a600?name=ft-4&connection_name=intrapreneur-cloudflare-1',
  headers: { 
    'x-api-key': 'U2Fsd...'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://service-cloudflare-zvqgeah36q-uc.a.run.app/media/image/01469ed2-2409-4fdd-72f7-400c09d5a600?name=ft-4&connection_name=intrapreneur-cloudflare-1',
  headers: { 
    'x-api-key': 'U2Fsd...'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}
{% endtabs %}
