> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetContactImageUploadStatus

# Package: contacts

# Namespace: Contacts

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts-v5/get-contact-image-upload-status.md

## Permission Scopes:
Manage Contacts: SCOPE.DC-CONTACTS.MANAGE-CONTACTS

## Introduction

Retrieves the status of the contact image upload process.

---

## REST API

### Schema

```
 Method: getContactImageUploadStatus
 Description: Retrieves the status of the contact image upload process.
 URL: https://www.wixapis.com/contacts/v5/contacts/{contactId}/image-upload/{imageUploadId}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactId, imageUploadId
 Method parameters: 
   param name: contactId | type:   none | required: true 
   param name: imageUploadId | type:   none | required: true 
 Return type: GetContactImageUploadStatusResponse
  - name: status | type: ImageUploadStatus | description: The status of the image upload process.  
     - enum:
     -     IN_PROGRESS: Image upload is in progress.
     -     SUCCESS: Image is uploaded.
     -     FAILURE: Image upload failed.

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: UPLOAD_ID_NOT_FOUND | Description: Couldn't find an image upload with this `imageUploadId`.


```

### Examples

### Get contact image upload status
Retrieves the status of an image upload job for a contact.

```curl
curl -X GET \
'https://www.wixapis.com/contacts/v5/contacts/a64d222b-d16e-4f68-9926-064aee9f47a2/image-upload/82f86bf5-f304-4b5c-89d0-e4fb2618efbd' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.crm.contactsV5.getContactImageUploadStatus(identifiers)
 Description: Retrieves the status of the contact image upload process.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  identifiers.contactId, identifiers.imageUploadId, identifiers
 Method parameters: 
   param name: identifiers | type: GetContactImageUploadStatusIdentifiers  none | required: true 
        - name: contactId | type: string | description: GUID of the contact whose image upload status to retrieve. | required: true | validation: format GUID
        - name: imageUploadId | type: string | description: The upload GUID of the image upload process. Returned when an image URL is provided while creating or updating a contact, or from [Generate Contact Image Upload Url](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts-v5/generate-contact-image-upload-url.md). | required: true | validation: maxLength 100
 Return type: PROMISE<GetContactImageUploadStatusResponse>
  - name: status | type: ImageUploadStatus | description: The status of the image upload process.  
     - enum:
     -     IN_PROGRESS: Image upload is in progress.
     -     SUCCESS: Image is uploaded.
     -     FAILURE: Image upload failed.

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: UPLOAD_ID_NOT_FOUND | Description: Couldn't find an image upload with this `imageUploadId`.


```

### Examples

### Get contact image upload status
```javascript
import { contactsV5 } from "@wix/crm";

const identifiers = {
  contactId: "085ccffa-6686-427f-a310-9b5e3058ebbc",
  imageUploadId: "4d4e448c-6f04-4b12-aeab-b9879ec7943c",
};

async function getContactImageUploadStatus() {
  const response = await contactsV5.getContactImageUploadStatus(identifiers);
}

/* Promise resolves to:
 * {
 *   "status": "IN_PROGRESS"
 * }
 */

```

### getContactImageUploadStatus (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { contactsV5 } from '@wix/crm';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { contactsV5 },
  // Include the auth strategy and host as relevant
});


async function getContactImageUploadStatus(identifiers) {
  const response = await myWixClient.contactsV5.getContactImageUploadStatus(identifiers);
};
```

---