---
title: Get Selfie
description: استرجاع الصورة الشخصية الملتقطة خلال عملية Human Token — متاحة لمدة 24 ساعة بعد انتهاء العملية.
canonical: https://developer.unico.io/ar/human-token/api-reference/get-selfie
locale: ar
generated_by: markdown-export
---

- [/ar/](/ar/)
- مرجع API
- Get Selfie

**في هذه الصفحةGet SelfieGETاسترجاع الصورة الشخصية الملتقطة خلال عملية Human Token.

تُعيد صورة السيلفي البيومترية التي التقطها المستخدم أثناء عملية Human Token. تُعاد الصورة كسلسلة نصية مشفّرة بترميز base64.
متاحة لأي عملية منتهية نفّذت التقاطًا بيومتريًا — جميع تدفقات Human Token الخمسة (`api+humantoken`، `api+liveness+humantoken`، `api+liveness+humantoken+revalidation`، `humantoken`، `humantoken+revalidation`). غير متاحة عندما تنتهي العملية دون التقاط بيومتري، حيث لا توجد سيلفي لإعادتها.
تحذيرالصورة الشخصية متاحة لمدة **24 ساعة** بعد انتهاء العملية. بعد ذلك، يتم حذف الصورة نهائيًا ويُرجع هذا المسار `404`.
### نقطة النهاية​

البيئةالرابط**الإنتاج**`GET https://humantoken.unico.app/client/v1/process/{processId}/selfie`
### الطلب​

Headers
Headerالقيمة`x-unico-accesskey``<your_access_key>` (راجع [المصادقة](/ar/human-token/get-started/authentication))
معاملات المسار (Path)
المعاملالنوعمطلوبالوصف`processId`string (UUID)نعممعرّف العملية الذي تُعيده [إنشاء عملية](/ar/human-token/api-reference/post-processes).
### مثال​

cURLNode.js```
curl -X GET https://humantoken.unico.app/client/v1/process/$PROCESS_ID/selfie \  -H "x-unico-accesskey: $UNICO_ACCESS_KEY"
```

```
import fetch from 'node-fetch';const res = await fetch(  `https://humantoken.unico.app/client/v1/process/${processId}/selfie`,  { headers: { 'x-unico-accesskey': process.env.UNICO_ACCESS_KEY } });const { fileContents, contentType } = await res.json();// fileContents is a base64-encoded image string
```

### الاستجابات​

200 OK
```
{  "fileContents": "/9j/4AAQSkZJR...",  "contentType": "image/jpeg"}
```

الحقلالنوعالوصف`fileContents`string (base64)صورة السيلفي الملتقطة، مشفّرة بترميز base64.`contentType`stringنوع MIME للصورة — `image/jpeg` أو `image/png`.
### رموز الأخطاء​

400 Bad Request401 Unauthorized403 Forbidden404 Not Found429 Too Many Requestsمعامل المسار `processId` مفقود أو بتنسيق غير صحيح.مفتاح الوصول مفقود أو غير صالح في الترويسة `x-unico-accesskey`. راجع [المصادقة](/ar/human-token/get-started/authentication).صلاحيات غير كافية للوصول إلى السيلفي لهذه العملية.العملية غير موجودة، أو انتهت العملية دون التقاط صورة بيومترية، أو انتهت فترة الاحتفاظ البالغة 24 ساعة.Rate limit reached. When your system receives an HTTP 429 error, you must implement mechanisms to prevent cascading failures and avoid worsening the restriction.
**Best practices:**

**Cool-down period (backoff):** Immediately halt or throttle subsequent requests from your system. Do not continuously retry failed requests in a tight loop.
**Queueing & throttling:** Buffer or queue outgoing requests on your end to control the traffic flow before re-sending them.
**Exponential backoff with jitter:** When retrying, increase the waiting time exponentially between attempts (e.g., 1 s, 2 s, 4 s, 8 s) and add a small random delay ("jitter") to prevent a herd effect where all queued requests retry at the exact same millisecond.

تحذيرContinuously hitting a rate-limited endpoint without backing off can **prolong the restriction period** and severely impact your system's operational throughput. Properly throttling requests on your side ensures a smoother, more resilient integration.
For default limits, increase requests and additional details, see [Rate Limits](/ar/developers/start/rate-limits).
### الخطوات التالية​

للحصول على نتيجة العملية الكاملة، راجع [الحصول على العملية](/ar/human-token/api-reference/get-process).
عُد إلى [إنشاء عملية](/ar/human-token/api-reference/post-processes) لإرسال سيلفي جديدة.
آخر تحديث في 22 أكتوبر 2026**