Retrieve portfolio
Retrieves detailed information about a specific portfolio by its unique ID.
HTTP Request
GET/api/portfolios/:id
Authorization
Authorization
- Required: Yes
- Permission: Staff with PorfolioPermission or Admin
- Permission Code: 4202
- Authentication: Token-based (Authorization: Token <your_api_key>)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | Unique ID of the portfolio to retrieve |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Retrieve a specific portfolio
4response = requests.get('http://www.example.com/api/portfolios/123',
5 headers={'Authorization': 'Token <your_api_key>'}
6)
7print(response.json())1# Retrieve a specific portfolio
2curl "http://www.example.com/api/portfolios/123" \
3-H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the portfolio |
| title | String | portfolio title (unique) |
| slug | String | unique slug of the portfolio |
| excerpt | String | Short description of the portfolio |
| order | Integer | Display order of the portfolio |
| image_data | Object | portfolio image details (nullable) |
| employer_data | Object | portfolio employer details (nullable) |
| tags_data | List(object) | list of portfolio tags (nullable) |
| links_data | List(object) | list of portfolio related links (nullable) |
| is_active | Boolean | whether the portfolio is active |
| completed_at | Integer | The time that the project has been finished/released/published |
| created_at | String (ISO 8601) | Timestamp when portfolio was created |
| updated_at | String (ISO 8601) | Timestamp when portfolio was last updated |
| description | String | full description of the project (nullable) |
| images_data | List(object) | list of gallery images objects (nullable) |
| meta | List(objcet) | list of meta objects (nullable) |
Image Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the image |
| type | String | File type (e.g., image/jpeg) |
| name | String | Original file name |
| size | Integer | File size in bytes |
| human_readable_size | String | Human readable file size (e.g., 2.5 MB) |
| f | String | URL to access the image file |
| width | Integer | Image width in pixels |
| height | Integer | Image height in pixels |
| mode | String | Color mode (e.g., RGB, CMYK) |
| thumbnails | List of thumbnail objects | Imgae thumbnails |
Thumbnail Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the thumbnail (unique) |
| f | String | URL to access the thumbnail file |
| size | Integer | File size in bytes (nullable) |
Client Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the client |
| name | String | client name (unique) |
| description | String | Description of the client (nullable) |
| image_data | Object | client image details |
Tag Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the tag |
| name | String | tag name (unique) |
| image_data | Object | tag image details |
Link Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the link |
| name | String | link name (not unique) |
| url | URLField | URL related to the link(nullable) |
| description | String | Description of the link (nullable) |
| image_data | Object | link image details |
Meta Data Structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the meta data |
| key | String | The key name of the meta data |
| value_text | String | The text value of the meta data |
| value_file | Object | The file value of the meta data |
Meta value_file data structure
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique ID of the file |
| type | String | The type of the file |
| name | String | The name of the file |
| size | Integer | The size of the file in bytes |
| human_readable_size | String | The human-readable size of the file |
| f | String | The url to the file |
Example Response
{
"id": 148,
"title": "web design",
"slug": "web",
"excerpt": "Sapiente veritatis ipsam ut ex minus nihil. Excepturi et beatae id repellendus dolor voluptatibus veniam aut nulla. Sed in illo explicabo nam.",
"order": 1,
"image_data": {
"id": 88,
"type": "image",
"name": "test text",
"size": 73062,
"human_readable_size": "71.35 KB",
"f": "http://localhost:8000/media/core_media/2026/03/02/image_test_media_file_0.bmp",
"width": 156,
"height": 156,
"mode": "RGB",
"thumbnails": [
{
"id": 229,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_64x64.bmp",
"size": 64
},
{
"id": 230,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_128x128.bmp",
"size": 128
},
{
"id": 231,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_512x512.bmp",
"size": 512
},
{
"id": 232,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_1080x1080.bmp",
"size": 1080
}
]
},
"employer_data": {
"id": 1,
"name": "digikala",
"image_data": {
"id": 88,
"type": "image",
"name": "test text",
"size": 73062,
"human_readable_size": "71.35 KB",
"f": "http://localhost:8000/media/core_media/2026/03/02/image_test_media_file_0.bmp",
"width": 156,
"height": 156,
"mode": "RGB",
"thumbnails": [
{
"id": 229,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_64x64.bmp",
"size": 64
},
{
"id": 230,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_128x128.bmp",
"size": 128
},
{
"id": 231,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_512x512.bmp",
"size": 512
},
{
"id": 232,
"f": "http://localhost:8000/media/core_media/2026/03/02/thumbnails/image_test_media_file_0_thumbnail_1080x1080.bmp",
"size": 1080
}
]
},
"description": "some store"
},
"tags_data": [],
"links_data": [
{
"id": 3,
"name": "github",
"url": "https://moeinsoft.com",
"image_data": null,
"description": ""
},
{
"id": 4,
"name": "site_url",
"url": "https://digikala.com",
"image_data": null,
"description": "the website url"
}
],
"is_active": true,
"completed_at": "2026-03-03T17:26:28Z",
"created_at": "2026-03-03T17:26:52.642607Z",
"updated_at": "2026-03-03T17:26:52.642613Z",
"description": "asdf",
"images_data": [],
"meta": []
}