# Read the Update Latest request

Source: https://docs.musicnerd.net/api-reference/artists/latest-refresh-state

Read the Update Latest request

## GET /api/artist/{id}/latest-refresh

Full OpenAPI specification: https://docs.musicnerd.net/spec/artist-latest.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": "Shared artist Latest",
    "version": "0.1.0",
    "description": "Durable public Latest cards and provider coverage shared by profiles and research."
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app"
    }
  ],
  "paths": {
    "/api/artist/{id}/latest-refresh": {
      "get": {
        "summary": "Read the Update Latest request",
        "operationId": "getLatestRefresh",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "Returns the artist's newest `latest_refresh` job that is still in scope: requested under the current approved claim by a user who still holds it, for the identities the artist has connected now. Saved identities, requester, errors and provider run IDs are never returned.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The artist's ID (a UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3"
          }
        ],
        "responses": {
          "200": {
            "description": "The artist's current Update Latest request, or `refresh: null` when there is none in scope. `Cache-Control: private, no-store`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "refresh"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ]
                    },
                    "refresh": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/LatestRefreshView"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "pending": {
                    "summary": "A request the worker is still checking",
                    "value": {
                      "status": "ok",
                      "refresh": {
                        "id": "6f1d2c3a-9b8e-4c7d-a6f5-1e2d3c4b5a69",
                        "status": "pending",
                        "requestedAt": "2026-10-21T14:02:11.000Z",
                        "sources": {
                          "instagram": {
                            "status": "pending"
                          },
                          "inprocess": {
                            "status": "disconnected"
                          },
                          "spotify": {
                            "status": "checked",
                            "checkedAt": "2026-10-21T14:02:15.000Z"
                          },
                          "deezer": {
                            "status": "disconnected"
                          },
                          "interviews": {
                            "status": "checked",
                            "checkedAt": "2026-10-21T14:02:15.000Z"
                          }
                        },
                        "retryAt": "2026-10-21T14:32:11.000Z"
                      }
                    }
                  },
                  "none": {
                    "summary": "No request in scope",
                    "value": {
                      "status": "ok",
                      "refresh": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`id` isn't a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Invalid artist"
                }
              }
            }
          },
          "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": "Sign in to update Latest."
                }
              }
            }
          },
          "403": {
            "description": "The user is neither the artist's claimant nor an admin.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Only this artist or an admin can update Latest."
                }
              }
            }
          },
          "503": {
            "description": "The request could not be read or saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Latest could not be checked. Please try again."
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LatestRefreshView": {
        "type": "object",
        "required": [
          "id",
          "status",
          "requestedAt",
          "sources",
          "retryAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The `latest_refresh` job."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "done",
              "failed"
            ],
            "description": "The job's status."
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          },
          "sources": {
            "type": "object",
            "required": [
              "instagram",
              "inprocess",
              "spotify",
              "deezer",
              "interviews"
            ],
            "properties": {
              "instagram": {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "checked",
                      "failed",
                      "disconnected"
                    ],
                    "description": "A pending source becomes failed once the request is done or failed."
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "posts_imported",
                      "older_posts_found",
                      "no_new_posts",
                      "instagram_unavailable",
                      "verifying_empty_window"
                    ],
                    "description": "Instagram only; any other saved detail is withheld."
                  },
                  "checkedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "inprocess": {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "checked",
                      "failed",
                      "disconnected"
                    ],
                    "description": "A pending source becomes failed once the request is done or failed."
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "posts_imported",
                      "older_posts_found",
                      "no_new_posts",
                      "instagram_unavailable",
                      "verifying_empty_window"
                    ],
                    "description": "Instagram only; any other saved detail is withheld."
                  },
                  "checkedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "spotify": {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "checked",
                      "failed",
                      "disconnected"
                    ],
                    "description": "A pending source becomes failed once the request is done or failed."
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "posts_imported",
                      "older_posts_found",
                      "no_new_posts",
                      "instagram_unavailable",
                      "verifying_empty_window"
                    ],
                    "description": "Instagram only; any other saved detail is withheld."
                  },
                  "checkedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "deezer": {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "checked",
                      "failed",
                      "disconnected"
                    ],
                    "description": "A pending source becomes failed once the request is done or failed."
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "posts_imported",
                      "older_posts_found",
                      "no_new_posts",
                      "instagram_unavailable",
                      "verifying_empty_window"
                    ],
                    "description": "Instagram only; any other saved detail is withheld."
                  },
                  "checkedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "interviews": {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "checked",
                      "failed",
                      "disconnected"
                    ],
                    "description": "A pending source becomes failed once the request is done or failed."
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "posts_imported",
                      "older_posts_found",
                      "no_new_posts",
                      "instagram_unavailable",
                      "verifying_empty_window"
                    ],
                    "description": "Instagram only; any other saved detail is withheld."
                  },
                  "checkedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              }
            }
          },
          "retryAt": {
            "type": "string",
            "format": "date-time",
            "description": "`requestedAt` plus 30 minutes; a POST before this returns the same request."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "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. The user must be the artist's approved claimant or a Music Nerd admin."
      }
    }
  }
}
```
