Skip to content

Get Genres

This API retrieves a list of all available genres. It should be called first to obtain the necessary genre keys for use in related Project API calls, such as create and edit.

Endpoint

GET v1/admin/genres

Headers

The JWT Access token should be passed in the authorization header for all APIs.

Header Value
Authorization JWT token

Response Body

    {
        "status_code": "A0000",
        "status_message": "success",
        "count": 10,
        "results": [
            {
                "key": "gnr-01fwzm9p60wsf5t4s3tye8r42a",
                "name": "Horror",
                "description": "Horror movies"
            },
            {
                "key": "gnr-03fwfd9p60wsf5t4s3tye8r42a",
                "name": "Romance",
                "description": "Romantic movies"
            },
            {
                "key": "gnr-04fwfd9p60wsf5t4s3tye8r47d",
                "name": "Action",
                "description": "Action movies"
            },
            .
            .
            .
        ],
        "previous": "api url to previous page",
        "next": "api url to next page"
    }
Field Type Description
status_code String Indee provided status code.
status_message String The message associated with the status code.
count String The number of results per page.
key String The unique identifier key of the genre.
name String The name of the genre.
description String A description of the genre.
previous URL API URL of the previous page.
next URL API URL of the next page.
## Error and Success Codes

For error codes and success codes, see Common Error Codes section.