Creations

Get the user's most recent creations

Returns the most recent files (creations) belonging to the user identified by the API key, enriched with the metadata of the creation that produced each file. Results are paginated and ordered from newest to oldest.

get/v1/creations/recent

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/creations/recent
  • Auth: API key in header x-magnific-api-key

Query parameters

per_pageinteger

Results per page. It must be greater than 0.

pageinteger

Page number. It must be greater than 0.

tool_namestring

Filter the creations by the tool that produced them.

Response

OK Response

Example response

{
  "data": [
    {
      "reference": "4fef9987-75d0-44d1-b336-65f42f883bff",
      "tool_name": "text-to-image",
      "folder_reference": "1e041aff-d0cf-48e0-a424-e8b2853ea8f8",
      "thumbnail": {
        "url": "https://cdn.freepik.com/thumbnails/8421.jpg"
      },
      "updated_at": "2023-03-07T23:05:26Z",
      "user_id": 159327,
      "name": "My awesome creation",
      "created_at": "2023-03-07T23:05:26Z",
      "external_id": "8421",
      "id": 1337,
      "folder_id": 98764,
      "creation": {
        "preview": "https://openapi-generator.tech",
        "identifier": "a1b2c3d4",
        "metadata": "{}",
        "nsfw": false,
        "raw": "https://openapi-generator.tech",
        "created_at": "2023-03-07T23:05:26Z",
        "tool": "text-to-image",
        "url": "https://cdn.freepik.com/creations/8421.png",
        "public": false,
        "user_id": 159327,
        "large_preview": "https://openapi-generator.tech",
        "id": 8421,
        "family": "image",
        "status": "completed"
      }
    },
    {
      "reference": "4fef9987-75d0-44d1-b336-65f42f883bff",
      "tool_name": "text-to-image",
      "folder_reference": "1e041aff-d0cf-48e0-a424-e8b2853ea8f8",
      "thumbnail": {
        "url": "https://cdn.freepik.com/thumbnails/8421.jpg"
      },
      "updated_at": "2023-03-07T23:05:26Z",
      "user_id": 159327,
      "name": "My awesome creation",
      "created_at": "2023-03-07T23:05:26Z",
      "external_id": "8421",
      "id": 1337,
      "folder_id": 98764,
      "creation": {
        "preview": "https://openapi-generator.tech",
        "identifier": "a1b2c3d4",
        "metadata": "{}",
        "nsfw": false,
        "raw": "https://openapi-generator.tech",
        "created_at": "2023-03-07T23:05:26Z",
        "tool": "text-to-image",
        "url": "https://cdn.freepik.com/creations/8421.png",
        "public": false,
        "user_id": 159327,
        "large_preview": "https://openapi-generator.tech",
        "id": 8421,
        "family": "image",
        "status": "completed"
      }
    }
  ],
  "meta": {
    "pagination": {
      "per_page": 1,
      "total": 1,
      "last_page": 1,
      "current_page": 1
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.