Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_API_TOKEN}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking API token.

Endpoints

Get all system options.

GET
https://getreica.com
/api/v1/system/options
requires authentication

This endpoint returns a list of options or a specific system options.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

Body Parameters

Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/system/options" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
Example response:
{
    "data": {
        "option": "resize",
        "value": "3"
    }
}

POST api/v1/rerun/{image}

POST
https://getreica.com
/api/v1/rerun/{image}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

image
string
required
Example:
expedita
Example request:
curl --request POST \
    "https://getreica.com/api/v1/rerun/expedita" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"

Folders

APIs for managing folders

Get all user folders.

GET
https://getreica.com
/api/v1/user/folders
requires authentication

This endpoint returns a list of all folders along with their related information for the authenticated user.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/user/folders" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
    "data": [
        {
            "id": "01jkawd4eexfdq2tyf66xe5tpw",
            "name": "doloremque",
            "type": "photo",
            "user_id": 39,
            "parent_id": null,
            "created_at": "2025-02-05T11:02:28.000000Z",
            "updated_at": "2025-02-05T11:02:28.000000Z"
        },
        {
            "id": "01jkawd4ep468vb34gpjg6p77n",
            "name": "est",
            "type": "photo",
            "user_id": 715,
            "parent_id": null,
            "created_at": "2025-02-05T11:02:28.000000Z",
            "updated_at": "2025-02-05T11:02:28.000000Z"
        }
    ]
}

Get all folders.

GET
https://getreica.com
/api/v1/folders
requires authentication

This endpoint returns a list of all folders along with their related information.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/folders" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
    "data": [
        {
            "id": "01jkawd4fajgzc6pdjqhb7x184",
            "name": "minus",
            "type": "background_removal",
            "user_id": 98,
            "parent_id": null,
            "created_at": "2025-02-05T11:02:28.000000Z",
            "updated_at": "2025-02-05T11:02:28.000000Z"
        },
        {
            "id": "01jkawd4fh8n0nfcf49gsjkx6f",
            "name": "repellat",
            "type": "model",
            "user_id": 71,
            "parent_id": null,
            "created_at": "2025-02-05T11:02:28.000000Z",
            "updated_at": "2025-02-05T11:02:28.000000Z"
        }
    ]
}

Create a new folder.

POST
https://getreica.com
/api/v1/folders
requires authentication

This endpoint allows the authenticated user to create a new folder.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/folders" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"sed\",
    \"type\": \"assumenda\"
}"
Example response:
{
    "data": {
        "id": "01jkawd4fyv9d1cxyk8yajpaa4",
        "name": "officiis",
        "type": "photo",
        "user_id": 36,
        "parent_id": null,
        "created_at": "2025-02-05T11:02:28.000000Z",
        "updated_at": "2025-02-05T11:02:28.000000Z"
    }
}

Display the specified folder by ID.

GET
https://getreica.com
/api/v1/folders/{id}
requires authentication

This endpoint returns the details of a specific folder for the authenticated user.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

id
string
required

The ID of the folder.

Example:
01hp4t1y3e0amzvsymm85y137r
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/folders/01hp4t1y3e0amzvsymm85y137r" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
    "data": {
        "id": "01jkawd4gfkjww3gadxr4me4eh",
        "name": "neque",
        "type": "photo",
        "user_id": 69,
        "parent_id": null,
        "created_at": "2025-02-05T11:02:28.000000Z",
        "updated_at": "2025-02-05T11:02:28.000000Z"
    }
}

Delete the specified folder by ID.

DELETE
https://getreica.com
/api/v1/folders/{id}
requires authentication

This endpoint allows the authenticated user to delete a specific folder.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

id
string
required

The ID of the folder.

Example:
01hp4t1y3e0amzvsymm85y137r
Example request:
curl --request DELETE \
    "https://getreica.com/api/v1/folders/01hp4t1y3e0amzvsymm85y137r" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"

Create a new child folder inside an existing folder.

POST
https://getreica.com
/api/v1/child/folder
requires authentication

This endpoint allows the authenticated user to create a new child folder within an existing parent folder.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/child/folder" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"folder_id\": \"animi\",
    \"name\": \"ad\"
}"
Example response:
{
    "data": {
        "id": "01jkawd4rjts9cac867azjt3wz",
        "name": "eveniet",
        "type": "model",
        "user_id": 261,
        "parent_id": null,
        "created_at": "2025-02-05T11:02:28.000000Z",
        "updated_at": "2025-02-05T11:02:28.000000Z"
    }
}

Add a new image to a folder.

POST
https://getreica.com
/api/v1/child/image
requires authentication

This endpoint allows the authenticated user to add a new image to a specified folder.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/child/image" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"folder_id\": \"vel\",
    \"name\": \"et\",
    \"url\": \"https:\\/\\/www.wisozk.net\\/error-aut-voluptatem-placeat-voluptatibus-non-eius\"
}"
Example response:
{
    "data": {
        "id": "01jkawd4sfsj90hw5y7tcjtq63",
        "name": "in",
        "url": "https://via.placeholder.com/640x480.png/00ee99?text=sit",
        "image_size": null,
        "user_id": 822,
        "request_id": "01jkawd4sd1ywqd32qr03tj427",
        "created_at": "2025-02-05T11:02:28.000000Z",
        "updated_at": "2025-02-05T11:02:28.000000Z"
    }
}

Images

APIs for managing images

Get all images.

GET
https://getreica.com
/api/v1/images
requires authentication

This endpoint returns a list of images for the authenticated user.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/images" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
    "data": [
        {
            "id": "01jkawd4j4f13agffeagp7zw5z",
            "name": "et",
            "url": "https://via.placeholder.com/640x480.png/0055cc?text=dolores",
            "image_size": null,
            "user_id": 814,
            "request_id": "01jkawd4j159dxn2d339z5zvan",
            "created_at": "2025-02-05T11:02:28.000000Z",
            "updated_at": "2025-02-05T11:02:28.000000Z"
        },
        {
            "id": "01jkawd4jxtdsd74n7cmnv32em",
            "name": "natus",
            "url": "https://via.placeholder.com/640x480.png/00aa00?text=eos",
            "image_size": null,
            "user_id": 816,
            "request_id": "01jkawd4jvkr4n78xsdptr8nt6",
            "created_at": "2025-02-05T11:02:28.000000Z",
            "updated_at": "2025-02-05T11:02:28.000000Z"
        }
    ]
}

Get a specific image by ID.

GET
https://getreica.com
/api/v1/images/{id}
requires authentication

This endpoint returns the details of a specific image for the authenticated user.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

id
string
required

The ID of the image.

Example:
01ht2jhq6w8rqdr4j49dqndvbf
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/images/01ht2jhq6w8rqdr4j49dqndvbf" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
    "data": {
        "id": "01jkawd4kx78e6edf18hk0a7ct",
        "name": "sed",
        "url": "https://via.placeholder.com/640x480.png/00aa00?text=vel",
        "image_size": null,
        "user_id": 818,
        "request_id": "01jkawd4kwskmjp4ssecfewyc3",
        "created_at": "2025-02-05T11:02:28.000000Z",
        "updated_at": "2025-02-05T11:02:28.000000Z"
    }
}

Update a specific image by ID.

PUT
https://getreica.com
/api/v1/images/{id}
requires authentication

This endpoint allows the authenticated user to update the name of a specific image.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

URL Parameters

id
string
required

The ID of the image.

Example:
01ht2jhq6w8rqdr4j49dqndvbf

Body Parameters

Example request:
curl --request PUT \
    "https://getreica.com/api/v1/images/01ht2jhq6w8rqdr4j49dqndvbf" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"nobis\"
}"
Example response:
{
    "data": {
        "id": "01jkawd4mypxn5pgpj3sy2bjpn",
        "name": "aliquid",
        "url": "https://via.placeholder.com/640x480.png/00aabb?text=ipsum",
        "image_size": null,
        "user_id": 820,
        "request_id": "01jkawd4mxmg0dw82acym97b2f",
        "created_at": "2025-02-05T11:02:28.000000Z",
        "updated_at": "2025-02-05T11:02:28.000000Z"
    }
}

Delete a specific image by ID.

DELETE
https://getreica.com
/api/v1/images/{image}
requires authentication

This endpoint allows the authenticated user to delete a specific image.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

image
string
required

The image.

Example:
01ht2jhq6w8rqdr4j49dqndvbf
Example request:
curl --request DELETE \
    "https://getreica.com/api/v1/images/01ht2jhq6w8rqdr4j49dqndvbf" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"

GET api/v1/download/{image_id}/{format}

GET
https://getreica.com
/api/v1/download/{image_id}/{format}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

image_id
string
required

The ID of the image.

Example:
01ht2jhq6w8rqdr4j49dqndvbf
format
string
required
Example:
beatae
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/download/01ht2jhq6w8rqdr4j49dqndvbf/beatae" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    location
                                                            : https://getreica.com/login
                                                                                                                    content-type
                                                            : text/html; charset=utf-8
                                                                                                                    vary
                                                            : Origin
                                                                                                                    set-cookie
                                                            : XSRF-TOKEN=eyJpdiI6Imo3VXRjR3RUUGNXZEZZeGVxbnlZV1E9PSIsInZhbHVlIjoiaWlGQ2NMTk50eU5JVncva3ZTd2d4dUZtNlpUYmtvMnQ1T2pNc204OERyUlVONGR4alRpejR5bloxMjFkcFowazZONVpRQ3Rqa1hiRmlEenFyZitOa0Nia1RPYTVEQUpEVXk4T0N0UDRHVkUzNHlSdG51T01tWFJDSERGcExBYzQiLCJtYWMiOiI2MGFiMGIxNzE2ZGZiM2M4NzIyMDBmZGE2ZDQzYzE5ZDlhNTlkMTQ2NjczZDIyMWFhZTZlMmEyNzUyMTM1NDU2IiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; samesite=lax; reica_session=eyJpdiI6IkZrVDRaVnQ0RTV0N3M4RDJJRXo1SGc9PSIsInZhbHVlIjoiMnd5WHJ5N1VTbjhoZDFoZWh1ZXF0MXNTaGlNTUxMWi9mRGd3aytLa0QvbTlLVHVwQjR6d00xTXBCTnU5NWN6SVNwMGprVVZvYUNLQWNMZmt4RGpIMytJUzFqRXVWNi8zaTJsK29lcG03N1VUN1pTMDg1RE5sUmEvNVd2Qjk5dWIiLCJtYWMiOiIxN2Q5ZTZlNzg5MWI5YmViNmViYzU5YjA0NWQ1Mzc2YTMyYTAyNzc5Nzk2MGY3NTZjYmY5ZjdmMGE3YTkzMWYzIiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; httponly; samesite=lax; KrmH2ZslYsG27cKuKtOd0RcEvfTmQAz7UOmQAmW4=eyJpdiI6IkIrcnhvSlpiWG9zekVsWVZDc0M0cmc9PSIsInZhbHVlIjoielppOCtvaUpnZUFUQ25NeXhzREE2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cVZ3QXdnQXFLUWVYOElhbG5BcUpaOThkaGs3Y0Zicko1VEV2Sm45WlIwWUVLQVFZcTBTSnp6ODYyZnFyKzJTU2d0SDVjcmlZNUl3aDdsVHZNN2VqYldjeEhrUlBmT0ZHUFpUb0F1VHZPcFNNbFd6cUl4elRBdmsvMVZyUCsvdzVQclJYSkpWaUR1Um8xbGdsd3MwUkljcm5xOUVldFBTdWtxNFYvd0UwOHl2TlNqRGlGOGhIQllqSFNxWlJQOC8vYVFmbjh6bE1Uc3BoRTlBb1pPNVJQODZ5dXRwb2tGbE8xZmh1Z3BKVU43VDEvTFlrOTJPWTBEYVVWcm82UEQ4eEZRNllkMC9xZjdhTDk3RENISUFHNW9TbG0vRytlU3VaZEVUYTZFTklLMGxzenZkc1hDK0hVSEU5SGVTWDBMeXdHSUd5cXBkLzY5endyNHdNTzdIZi9qckpNRUdJOGlPbU5OSFFLVDVuMm51ejFvRHN5b1FiV0tkWS9NYzExZEFwQmZOZVdoUTVPeGVMYnNKdWt0UGhPeWRnMTg4cDc1ajVTQjBwcFRaRlA0VlJyV3J4UGRTNlAvUVQvb2NJZzJYcEdZNFdvSFZzditodmJRZUpMSm5RdWk4QW9DRWMrc0ZES1VLVm93dndjb1JJdEhFc1EzRzJSNHlhTTdsOXhUOUtLRlRIYWFvWXROTzJXRkd0VDRlSENIUT09IiwibWFjIjoiNGEzY2FmMzc4NWQ2NzliMWM2ZGZmMWY1YjlmM2M2MWFmZWY4NTcxMzQxYTU5NWUzYWVjNTEwOGM5OWE4ZTRkNyIsInRhZyI6IiJ9; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; httponly; samesite=lax
                                                         
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='https://getreica.com/login'" />

        <title>Redirecting to https://getreica.com/login</title>
    </head>
    <body>
        Redirecting to <a href="https://getreica.com/login">https://getreica.com/login</a>.
    </body>
</html>

Notifications

APIs for managing notifications

Returns all unread notifications

GET
https://getreica.com
/api/v1/notifications/all
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/notifications/all" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    location
                                                            : https://getreica.com/login
                                                                                                                    content-type
                                                            : text/html; charset=utf-8
                                                                                                                    vary
                                                            : Origin
                                                                                                                    set-cookie
                                                            : XSRF-TOKEN=eyJpdiI6InFrejN1TFljd0syMHpSRHljZVJKeUE9PSIsInZhbHVlIjoidlp0UnpiaDg5R25WOTAvMisrdTRaZlRRcFZqdElJN0ZxcmxrbHRYQlJSb3g0OWVYQjBWeTdGWm9lYUxSaHhreWc5YnpiN1hxMFpmbEtiMHN2UVRQMjdaSkZ5cDFnamdzUGMrOS9PZ0pmZnpmekJLZVRRbDRFSkFySHl4QytWdWIiLCJtYWMiOiJlMzNlMTUwNjFkZmViYzQxOTViMmM0YTU1NmYzMTc1MGJmMzVkM2Y5YmU0NjZhZmZkMjNhODU1YmYzOTVhZTI3IiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; samesite=lax; reica_session=eyJpdiI6IlFOU0k4R1ppWms1cjBtMGljdjBneUE9PSIsInZhbHVlIjoiZlFXY1NmOXFUMEVkUEVFMlJleDlhVUhqMFNIYUtHRzVoeVZ0ZExHV3Z3azRwR0dreUJjZWQ4b2tRNEdkTkRnSmtVb2hUalRpbVlObWxuR1dVU0JPWUJ1djdLdVlaK09nQUthczJ5ckJ6R0JNQXB6TDZRQTFkUDlSWVE1L0tvNUgiLCJtYWMiOiI1MjUwYWY0Y2RjYmQyYTk4OTczYWY3M2NlNDBlNjk1N2E4NTBjNTcwNjA3NGE2M2FhMzc3MTIzOTE2MzA4ZDJkIiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; httponly; samesite=lax; KrmH2ZslYsG27cKuKtOd0RcEvfTmQAz7UOmQAmW4=eyJpdiI6IjZYb1JLcHNxa3NzMFFmZDhwTlA2TWc9PSIsInZhbHVlIjoiUjlKY3BLT1IxUmR2Q2ZjSkNMeUgzUmNJWUhCTm9Qc2s0cWoxZ1dpOTQ0S3FCck1NbHZwWm9POUtpd21xdCtWNWZLOG5tUHFxdFhPZmFtVnowMHBVTUNtMWlNMFFNbEtiR1l0WnVHYlVXdnF2MFhvZVZZS3ZqdmxXdlFTcFQ2cmZxbm5jcjl0c0diK0I1UWZMVk1oZktUdm9FR1A2UkR1ZlhNenNEYmc5SHl5cGxZeTI1RTVHMENnZG9PMDE2RkNIbkVsMnMxS01aTTVFQzlNUmFWbHNmb3RGaDNmMmVyWVpWVENLNjMzSEhaNDhWZkIwUlJ6MmMzT3ZSakg0TUwyR0hSbWZhOGhDQkRzSzJ1WGpMVmNYdFhreDV5UXZwR045RUVKeFUzME10UVB2eHhwWEZadkxJTmtzZ3JKdmFOaHl3NExOa2h6MVFEU2xWMTNCVVp1eXlTK3g4OU56MTNkM09UV01iV2d3aU9yUWFRdTVoaW1RbmhVM2lpSTZvRmR4TWVINmIralVvUExjTTA0YVVlT1VxcFdNS3pyOXZoSFo0ZXIxM3MyT2pIb1doVVNZRk1Va1FMTTRqYUpEc0liTFJHY0VVcVJ2S09iUlFKZWdnRHovWmdDbXFEVlVjUko4RHlOaG8zYWk4QXdlNFhVUWlDZkp1SlVOSmh1MjU1S21PWDN6aXUzNEs1eVJUZW05VFUzbFBRPT0iLCJtYWMiOiIxOTM3YjljOTY0OTg3ODE5MGI1MmNlNTBlZTgxNzE4YjE5Mjc1ZTdhN2Y1MjA4NDczNmYzYmU4ZDAzN2IxYWQzIiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; httponly; samesite=lax
                                                         
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='https://getreica.com/login'" />

        <title>Redirecting to https://getreica.com/login</title>
    </head>
    <body>
        Redirecting to <a href="https://getreica.com/login">https://getreica.com/login</a>.
    </body>
</html>

Mark one notification as read

GET
https://getreica.com
/api/v1/notifications/mark-as-read/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}

URL Parameters

id
string
required

The ID of the mark as read.

Example:
iusto
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/notifications/mark-as-read/iusto" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    location
                                                            : https://getreica.com/login
                                                                                                                    content-type
                                                            : text/html; charset=utf-8
                                                                                                                    vary
                                                            : Origin
                                                                                                                    set-cookie
                                                            : XSRF-TOKEN=eyJpdiI6IjV5Vmp2eVhodndJVG13QnlxcjZYbnc9PSIsInZhbHVlIjoiaTRPS3FZQzl5UVlNaFR5emZXR3RMZW52bXpmZll2Q1dVbVNOTGU1SFRpcVFmc0VhdFRhVmZPSnlBUEwvemR4b0RmVGtOcmlGcy9aN2hWcXZScGtYclo1WktDL1E5OExPVG5yQUlCa2I4bkorcCtpY094UEQxK3Y3T1V4OWcvR3AiLCJtYWMiOiI3ZGFkMDBlOGU5ODQ4ZmVhZDYwYWYwZDk0OGFkOTViOGIyYmU0ZjA3ZjRmNWMyMTYzNjdjNGZjMDZjZTEyODQ4IiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; samesite=lax; reica_session=eyJpdiI6IjVZdmlYWndIb0hwbVY4eHhrRThWQnc9PSIsInZhbHVlIjoiL01ialJWOFNHWFU1bVpscVVrc09ncGNIWnZGV0dvcHZsS1dKNHhXaG5GUHB1UTE1bERlQ1VYeHhhTFE3NERuYzNkVTRWcWVUbXVaZGtsTDlQ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VeVgyIiwibWFjIjoiOGE0YzJjNTE5YWEwMDBmZjRkZTY1NGZjNjc1MTU0MDU3NDE0Y2QxOTgxZDc2ODliOTIwNmFmYzczNTY5MDE2NSIsInRhZyI6IiJ9; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; httponly; samesite=lax
                                                         
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='https://getreica.com/login'" />

        <title>Redirecting to https://getreica.com/login</title>
    </head>
    <body>
        Redirecting to <a href="https://getreica.com/login">https://getreica.com/login</a>.
    </body>
</html>

Mark all notifications as read

GET
https://getreica.com
/api/v1/notifications/mark-all-as-read
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/notifications/mark-all-as-read" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    location
                                                            : https://getreica.com/login
                                                                                                                    content-type
                                                            : text/html; charset=utf-8
                                                                                                                    vary
                                                            : Origin
                                                                                                                    set-cookie
                                                            : XSRF-TOKEN=eyJpdiI6InRqUXdxcGlNR1ZkZjJjREc4eVYvb1E9PSIsInZhbHVlIjoiNUExNkc0ejV5TEYxa3pnSmJGT0xpSG1rdHZJVEViVSs4ZlI3Wm5tSmt2SG9ZVFM4SWFmcW9MaEJQY3A3bWo4Ymd3NkNSQ1VBcTdPSzFVc3lXV2VBNGQzcUp4NlpKak9BOXByNkhTT21xcE5vZXJ5NVkyQ3NhL2JSSklIWmZ3WEIiLCJtYWMiOiIxMjVlOWY4YmNjZjI0MzI5ZjI1ZGVjNGNiOWU1ZTMyMjcwOTdiZDY1ZjNiNTM5YjNiM2M0NTRmN2NhZTQ1MDZlIiwidGFnIjoiIn0%3D; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; samesite=lax; reica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wmo3ZEpuUUNMb0hzNzhmclJRRi9nV0hlczcyQmpmcUZxNU5uc0NFNVhDN1ZxazR6Y0ZzNjRydGVhUFYzNVA4RG81NHVnMkRwQlBmN0k3bG9QdGFxdGd5V0h0bnhadis1d2ZudGdHYUZ4OXhyVmZFcXRzZFVWcDJ3SjVmdmtSTkk5bzkzIiwibWFjIjoiY2EzZDBkOTdlYzg1Mzk5NWFmMTE0OGEzYTc2ZDM2MjM0YmE5MGY4YWM2NDgwNGI1YjNhZWQ2NmFlYzk1NzI1MSIsInRhZyI6IiJ9; expires=Wed, 12 Feb 2025 11:02:28 GMT; Max-Age=604800; path=/; domain=getreica.com; secure; httponly; samesite=lax
                                                         
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='https://getreica.com/login'" />

        <title>Redirecting to https://getreica.com/login</title>
    </head>
    <body>
        Redirecting to <a href="https://getreica.com/login">https://getreica.com/login</a>.
    </body>
</html>

Workflows

APIs for managing workflows

Background removal

POST
https://getreica.com
/api/v1/workflow/background_remover
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/background_remover" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"bg_template\": \"01hqnjhg6e7yw80002fyzc4bv4\",
    \"product\": \"01hb6da7tds27dec2aw7depd9h\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Resize

POST
https://getreica.com
/api/v1/workflow/resize
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/resize" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"channel\": \"instagram\",
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Virtual try on

POST
https://getreica.com
/api/v1/workflow/vto
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/vto" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"cloth_image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"virtual_option_id\": \"01hv6xgwqvx3w7v9b27h30p06m\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

MissingHead

POST
https://getreica.com
/api/v1/workflow/missinghead
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/missinghead" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"localization\": \"01hxtwp6w9nzy01z4m5k1r7ey9\",
    \"gender\": \"man\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\",
    \"face_expression\": \"smile\",
    \"bg_gradient\": \"#000000\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Localization

POST
https://getreica.com
/api/v1/workflow/localization
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/localization" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"object\": \"01hxtwp6w9nzy01z4m5k1r7ey9\",
    \"age\": 16,
    \"gender\": \"man\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Background marketplace

POST
https://getreica.com
/api/v1/workflow/backgroundmarketplace
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/backgroundmarketplace" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"object\": \"#F6F7F8\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Zoomout

POST
https://getreica.com
/api/v1/workflow/outpainting
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/outpainting" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"top\": 256,
    \"right\": 512,
    \"bottom\": 256,
    \"left\": 512,
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Copycat

POST
https://getreica.com
/api/v1/workflow/copycat
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/copycat" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"strength\": 1.6,
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Upscale

POST
https://getreica.com
/api/v1/workflow/upscale
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/upscale" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"scale\": \"2\",
    \"image\": \"\\\"data:image\\/jpg;base64,\\/9j\\/4QC8RXhpZg...\\\"\",
    \"image_url\": \"https:\\/\\/genshoot.s3.eu-west-2.amazonaws.com\\/resize\\/2a845b77-b211-4b86-987b-5144ed65d474_out-524.png\"
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Generate

POST
https://getreica.com
/api/v1/workflow/generate
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Content-Type
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://getreica.com/api/v1/workflow/generate" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"options\": [
        \"hair-style-1\",
        \"general-21\",
        \"accessories-2\"
    ]
}"
Example response:
{
    "data": {
        "name": "01j7ethy1jj4sx017640jsqx4g 10-09-2024",
        "user_id": 15,
        "url": "https://stage.getreica.com/storage/placeholder.gif",
        "request_id": "01j7ethy1jj4sx017640jsqx4g",
        "id": "01j7ethy1wa323ee3b9a4865mm",
        "updated_at": "2024-09-10T20:38:44.000000Z",
        "created_at": "2024-09-10T20:38:44.000000Z"
    }
}
{
    "data": null,
    "message": "You do not have enough credit to complete this action, Get more credits <a class='underline' href='https://stage.getreica.com/pricing'>here</a>"
}
{
    "data": null,
    "message": "We are sorry but this endpoint is currently disabled, try later or contact us"
}

Workflows Options

APIs for getting the necessary options to run the workflows

Background Removal options

GET
https://getreica.com
/api/v1/workflow/options/background_templates
requires authentication

Fetches and caches the background removal options.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/workflow/options/background_templates" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
{
       "name": "Modern table 1",
       "id": "01hqn06m95vaftssq1fjrbn0v4",
       "background": "backgrounds/iFvbaQtWvIRrDs3KTNkEGJChAeOXSL4pAyDOaYxI.png",
       "background_url": "https://genshoot.s3.eu-west-2.amazonaws.com/backgrounds/iFvbaQtWvIRrDs3KTNkEGJChAeOXSL4pAyDOaYxI.png"
   },
   {
       "name": "Glass Table 1",
       "id": "01hqnhc10k5dxtjaveyqr0prtm",
       "background": "backgrounds/shhlm9CdHCPpqCILVwUKwvTUdN3cZYtYJ3W2wSxQ.png",
       "background_url": "https://genshoot.s3.eu-west-2.amazonaws.com/backgrounds/shhlm9CdHCPpqCILVwUKwvTUdN3cZYtYJ3W2wSxQ.png"
   },
}

Products options

GET
https://getreica.com
/api/v1/workflow/options/objects
requires authentication

Fetches and caches the genshoot product options.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/workflow/options/objects" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
 {
   "name": "bag",
   "id": "01haa0xwstpnc73ck95n4zbe6b",
   "translated_label": ""
},
{
   "name": "jacket",
   "id": "01haa0ymdb1b07xqxzdybcea5m",
   "translated_label": ""
},
}

Virtual Try-On options

GET
https://getreica.com
/api/v1/workflow/options/vto
requires authentication

Fetches and caches the virtual try-on options.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/workflow/options/vto" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
 {
   "type": "Upper body",
   "gender": "woman",
   "thumbnail": "thumbnails/cxilxvfuBfiCLNx8T8IF06aIznN2gnDMHHtA7CoC.png",
   "id": "01hv1zjxv72v0tbtmzt738fn26",
   "thumbnail_url": "https://genshoot.s3.eu-west-2.amazonaws.com/thumbnails/cxilxvfuBfiCLNx8T8IF06aIznN2gnDMHHtA7CoC.png"
},
{
   "type": "Upper body",
   "gender": "woman",
   "thumbnail": "thumbnails/yLVtMbg76WOrmkpdazQchSVAK6DFIsEFIfhoD6vk.png",
   "id": "01hv7g9gq9nxzgjnxx8axegx6n",
   "thumbnail_url": "https://genshoot.s3.eu-west-2.amazonaws.com/thumbnails/yLVtMbg76WOrmkpdazQchSVAK6DFIsEFIfhoD6vk.png"
},
}

Localization options

GET
https://getreica.com
/api/v1/workflow/options/localization
requires authentication

Fetches and caches the localization options.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/workflow/options/localization" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
	{
	"value": "Italian",
		"id": "01hxsnzfkyjdqrytmbfe4gccp2",
		"translated_label": ""
	},
	{
		"value": "Afghan",
		"id": "01hxtwp6w9nzy01z4m5k1r7ey3",
		"translated_label": ""
	}
}

Generate options

GET
https://getreica.com
/api/v1/workflow/options/generate
requires authentication

Return all the prompt generate options.

Headers

Authorization
Example:
Bearer {YOUR_API_TOKEN}
Example request:
curl --request GET \
    --get "https://getreica.com/api/v1/workflow/options/generate" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}"
Example response:
{
    "section": "Style of Photo",
    "features": [
        {
            "feature_name": "General",
            "options": {
                "General 1": {
                    "id": "01hgzf5ysqqkkgdkzjtfjm20kw",
                    "image": "https://genshoot.s3.eu-west-2.amazonaws.com/options/FFmYuZr1NPNKl7m2tTOyngKH5DNAJbOBpGctlXXy.png"
                }
            }
        }
    ]
}