# Profile edit history

Source: https://docs.musicnerd.net/api-reference/activity/self-edits

Profile edit history

## GET /api/selfEdits

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/selfEdits": {
      "get": {
        "summary": "Profile edit history",
        "operationId": "getSelfEdits",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "The signed-in user's edits to their own artist profile, ten per page, newest first, with the artist's name and the old and new value of each link. A page past the end returns the last page.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "The page, from 1. Default 1; a page past the last is clamped to it.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            },
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "One page of edits, with `Cache-Control: private, no-store`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SelfEdits"
                },
                "example": {
                  "status": "ok",
                  "entries": [
                    {
                      "id": "5e4d3c2b-1a0f-4e9d-8c7b-6a5f4e3d2c1b",
                      "artistId": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3",
                      "artistName": "Bio Ritmo",
                      "siteName": "instagram",
                      "oldValue": "bioritmo",
                      "newValue": "bioritmomusic",
                      "createdAt": "2026-10-20 17:02:55.118+00"
                    }
                  ],
                  "total": 1,
                  "page": 1,
                  "pageCount": 1
                }
              }
            }
          },
          "400": {
            "description": "`page` is not a whole number of 1 or more.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Invalid page"
                }
              }
            }
          },
          "401": {
            "description": "No token, an invalid or expired token, or no Music Nerd user for it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Not signed in"
                }
              }
            }
          },
          "500": {
            "description": "The history couldn't be read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Unable to load profile edits"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SelfEdits": {
        "type": "object",
        "required": [
          "status",
          "entries",
          "total",
          "page",
          "pageCount"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "entries": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/SelfEdit"
            }
          },
          "total": {
            "type": "integer",
            "description": "All of the user's profile edits."
          },
          "page": {
            "type": "integer",
            "description": "The page returned, after clamping."
          },
          "pageCount": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string"
          }
        }
      },
      "SelfEdit": {
        "type": "object",
        "required": [
          "id",
          "artistId",
          "artistName",
          "siteName",
          "oldValue",
          "newValue",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "artistId": {
            "type": "string",
            "format": "uuid"
          },
          "artistName": {
            "type": [
              "string",
              "null"
            ]
          },
          "siteName": {
            "type": "string",
            "description": "The platform column that changed."
          },
          "oldValue": {
            "type": [
              "string",
              "null"
            ],
            "description": "Null when the link was added."
          },
          "newValue": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          }
        }
      }
    },
    "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."
      }
    }
  }
}
```
