# Pending UGC count

Source: https://docs.musicnerd.net/api-reference/admin/pending-ugc-count

Pending UGC count

## GET /api/pendingUGCCount

Full OpenAPI specification: https://docs.musicnerd.net/spec/admin.json

## Authentication

This operation's specification permits a request without authentication.

[Authentication guide](https://docs.musicnerd.net/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Music Nerd API: admin",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app",
      "description": "Production"
    },
    {
      "url": "https://musicnerd-api-staging.vercel.app",
      "description": "Staging (staging database)"
    }
  ],
  "paths": {
    "/api/pendingUGCCount": {
      "get": {
        "summary": "Pending UGC count",
        "operationId": "getPendingUgcCount",
        "security": [
          {
            "adminBearer": []
          },
          {}
        ],
        "description": "How many user-submitted links are waiting for admin review. A caller who is not signed in or not an admin gets `count: 0` rather than an error, and so does a database failure.",
        "responses": {
          "200": {
            "description": "The count; 0 for anyone who isn't an admin.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "count"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ]
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0
                    }
                  }
                },
                "examples": {
                  "admin": {
                    "summary": "An admin with three links to review",
                    "value": {
                      "status": "ok",
                      "count": 3
                    }
                  },
                  "other": {
                    "summary": "Not signed in, or not an admin",
                    "value": {
                      "status": "ok",
                      "count": 0
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "adminBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Access token",
        "description": "A Music Nerd admin's access token. Copy it at https://musicnerd.net/access after signing in. A signed-in user who is not an admin gets 403."
      }
    }
  }
}
```
