# Submitted links

Source: https://docs.musicnerd.net/api-reference/activity/user-entries

Submitted links

## GET /api/userEntries

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

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

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

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Music Nerd API: activity and contributions",
    "version": "1.0.0",
    "description": "The public activity feed and a signed-in user's own contributions: their recent edits, profile edits, submission counts and submissions."
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app",
      "description": "Production"
    },
    {
      "url": "https://musicnerd-api-staging.vercel.app",
      "description": "Staging (staging database)"
    }
  ],
  "paths": {
    "/api/userEntries": {
      "get": {
        "summary": "Submitted links",
        "operationId": "getUserEntries",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "The signed-in user's submitted links with the artist each one belongs to, ten per page, newest first, filterable by platform, approval status and artist name. `all=true` returns every entry in one page. Without a valid token the list is empty with `total` 0.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "The page, from 1. Anything that isn't a positive number means page 1. Ignored with `all=true`.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            },
            "example": 1
          },
          {
            "name": "siteName",
            "in": "query",
            "required": false,
            "description": "Only links on this platform (a `platforms` value). `all` or omitted: every platform.",
            "schema": {
              "type": "string"
            },
            "example": "all"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "`approved` or `pending`. Anything else: both.",
            "schema": {
              "type": "string",
              "enum": [
                "approved",
                "pending"
              ]
            },
            "example": "approved"
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "Only links whose artist's name contains this text, case-insensitively. Trimmed and cut to 100 characters.",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "ritmo"
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "`oldest` for oldest first. Anything else: newest first.",
            "schema": {
              "type": "string",
              "enum": [
                "oldest",
                "newest"
              ]
            },
            "example": "newest"
          },
          {
            "name": "all",
            "in": "query",
            "required": false,
            "description": "`true` returns every matching entry as a single page (`pageCount` 1).",
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the user's links; when signed in, sent with `Cache-Control: private, no-store`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserEntries"
                },
                "examples": {
                  "signedIn": {
                    "summary": "A contributor's first page",
                    "value": {
                      "status": "ok",
                      "entries": [
                        {
                          "id": "c9d8e7f6-a5b4-4c3d-9e2f-1a0b9c8d7e6f",
                          "createdAt": "2026-10-20 18:40:12.004",
                          "siteName": "bandcamp",
                          "ugcUrl": "https://bioritmo.bandcamp.com",
                          "accepted": true,
                          "artistName": "Bio Ritmo",
                          "artistId": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3"
                        }
                      ],
                      "total": 1,
                      "pageCount": 1,
                      "platforms": [
                        "bandcamp",
                        "instagram"
                      ]
                    }
                  },
                  "signedOut": {
                    "summary": "No token",
                    "value": {
                      "status": "ok",
                      "entries": [],
                      "total": 0,
                      "pageCount": 0
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The links couldn't be read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Internal server error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "UserEntries": {
        "type": "object",
        "required": [
          "status",
          "entries",
          "total",
          "pageCount"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserEntry"
            }
          },
          "total": {
            "type": "integer",
            "description": "How many entries match the filters."
          },
          "pageCount": {
            "type": "integer",
            "description": "0 when signed out; 1 with `all=true`."
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every platform the user has submitted to, for the filter menu. Absent when signed out."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string"
          }
        }
      },
      "UserEntry": {
        "type": "object",
        "required": [
          "id",
          "createdAt",
          "siteName",
          "ugcUrl",
          "accepted",
          "artistName",
          "artistId"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "siteName": {
            "type": [
              "string",
              "null"
            ]
          },
          "ugcUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "accepted": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "True once an admin approved it."
          },
          "artistName": {
            "type": [
              "string",
              "null"
            ]
          },
          "artistId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          }
        }
      }
    },
    "securitySchemes": {
      "privyBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Access token",
        "description": "The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in."
      }
    }
  }
}
```
