{
  "openapi": "3.1.0",
  "info": {
    "title": "Walk On Records API",
    "version": "1.0.0",
    "summary": "Free playlist submissions and public catalog data for Walk On Records.",
    "description": "Walk On Records is an independent record label. This API lets an artist, or an AI assistant acting with the artist's explicit approval, submit a track to the free Walk On Records playlists and read public roster, release, track, and playlist data.\n\nRules for agents (see https://walkonrecords.com/ai-submission-policy):\n1. Collect every detail from the artist. Never guess song titles, links, or AI status.\n2. Confirm the artist owns or controls the rights and agrees to the Submission Guidelines.\n3. Show the artist exactly what you will submit and get explicit approval.\n4. POST once to /api/v1/submit.\n5. Give the artist the reference. Keep the status_token private.\nAgents must never agree to licensing, exclusivity, contracts, or payments for an artist; those need a human.\n\nSubmitting is free. There is no pay-for-placement. Playlists cap at 75 songs and rotate weekly when possible. Submission does not guarantee placement and does not transfer ownership or grant licensing rights.\n\nRate limits per network (hashed IP, rolling 1 hour): 5 accepted submissions and 20 total attempts. Over the limit returns 429 with a Retry-After header.\n\nNo confirmation email is sent to the artist yet; the reference in the response is the confirmation.",
    "contact": {
      "name": "Walk On Records",
      "email": "Info@walkonrecords.com",
      "url": "https://walkonrecords.com/ai-submission-policy"
    },
    "termsOfService": "https://walkonrecords.com/terms"
  },
  "externalDocs": {
    "description": "AI submission policy",
    "url": "https://walkonrecords.com/ai-submission-policy"
  },
  "servers": [
    {
      "url": "https://walkonrecords.com",
      "description": "Production (HTTPS only)"
    }
  ],
  "tags": [
    {
      "name": "Submissions",
      "description": "Submit a track and check its status."
    },
    {
      "name": "Catalog",
      "description": "Read-only public data copied from walkonrecords.com. No authentication."
    }
  ],
  "paths": {
    "/api/v1/submit": {
      "post": {
        "tags": [
          "Submissions"
        ],
        "operationId": "submitTrack",
        "summary": "Submit a track to the Walk On Records playlists",
        "description": "Only call this after the artist has approved the exact details. rights_confirmed and submission_consent must both be the JSON value true. Duplicate rule: the same email with the same link, or the same email with the same song title (case-insensitive), within 7 days returns 409 with the earlier reference. Rate limits per network (hashed IP, rolling 1 hour): 5 accepted submissions and 20 total attempts. Over the limit returns 429 with a Retry-After header. On success, Walk On Records emails the submission to the label and sends the artist one short confirmation email (reference, song, playlist, rules, and how to withdraw by replying). The response reports this in confirmation_email_queued; a failed email never fails the submission.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmissionRequest"
              },
              "example": {
                "artist_name": "John Smith",
                "email": "artist@example.com",
                "song_title": "Highway Home",
                "genre": "Country",
                "spotify_url": "https://open.spotify.com/track/0exampleTrackId000000",
                "playlist": "country",
                "description": "Traditional country trucking song",
                "ai_music": false,
                "rights_confirmed": true,
                "submission_consent": true,
                "agent_name": "Example Assistant"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Submission stored.",
            "headers": {
              "Location": {
                "description": "Status URL for this submission",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionCreated"
                },
                "example": {
                  "success": true,
                  "message": "Submission received. Walk On Records listens to every submission; placement is not guaranteed.",
                  "reference": "WOR-2026-00125",
                  "status": "received",
                  "status_token": "3f9c0a6e2b7d41c58e0f9a1b2c3d4e5f60718293a4b5c6d7",
                  "status_url": "https://walkonrecords.com/api/v1/submissions/WOR-2026-00125",
                  "submitted_at": "2026-11-22T21:30:00Z",
                  "confirmation_email_queued": true,
                  "label_notification_queued": true,
                  "next_steps": "..."
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON, or the honeypot field `website` was filled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": "website",
                      "code": "spam_detected",
                      "message": "The website field must be left empty."
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Already submitted from this email in the last 7 days.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": null,
                      "code": "duplicate",
                      "message": "This song was already submitted from this email in the last 7 days (reference WOR-2026-00120). No need to send it again."
                    }
                  ],
                  "reference": "WOR-2026-00120",
                  "status": "duplicate"
                }
              }
            }
          },
          "413": {
            "description": "Body larger than 16 KB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": null,
                      "code": "too_large",
                      "message": "Request body must be under 16384 bytes."
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "Content-Type is not application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": null,
                      "code": "unsupported_media_type",
                      "message": "Send the submission as JSON with Content-Type: application/json."
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Every problem is listed; fix them and resend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": "email",
                      "code": "invalid_email",
                      "message": "email must be a valid email address, like artist@example.com."
                    },
                    {
                      "field": "spotify_url",
                      "code": "not_a_track_link",
                      "message": "Spotify link must be a single track link: https://open.spotify.com/track/... (no album, artist, or playlist links)."
                    },
                    {
                      "field": "rights_confirmed",
                      "code": "must_be_true",
                      "message": "rights_confirmed must be true: ..."
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": null,
                      "code": "rate_limited",
                      "message": "Too many submissions from this network. ..."
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Server problem. Retry later or use https://walkonrecords.com/submit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": null,
                      "code": "server_error",
                      "message": "Something went wrong on our side."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions/{reference}": {
      "get": {
        "tags": [
          "Submissions"
        ],
        "operationId": "getSubmissionStatus",
        "summary": "Check a submission's status",
        "description": "Returns status and dates for one submission. Requires the status_token returned at submission time, preferably in the X-Status-Token header (the token query parameter also works). A wrong or missing token returns the same 404 as an unknown reference, so nothing leaks.",
        "security": [
          {
            "statusTokenHeader": []
          },
          {
            "statusTokenQuery": []
          }
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "description": "Submission reference, format WOR-YYYY-NNNNN.",
            "schema": {
              "type": "string",
              "pattern": "^WOR-\\d{4}-\\d{5,}$"
            },
            "example": "WOR-2026-00125"
          }
        ],
        "responses": {
          "200": {
            "description": "Status found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionStatus"
                }
              }
            }
          },
          "404": {
            "description": "Unknown reference or invalid token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "field": "reference",
                      "code": "not_found",
                      "message": "No submission found for that reference and status token."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/artists": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "listArtists",
        "summary": "Walk On Records roster",
        "security": [],
        "responses": {
          "200": {
            "description": "The five roster artists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "artists": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Artist"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/releases": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "listReleases",
        "summary": "Releases listed on the artist pages",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/artistFilter"
          }
        ],
        "responses": {
          "200": {
            "description": "Releases.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "releases": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Release"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tracks": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "listTracks",
        "summary": "Tracks listed on the artist pages",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/artistFilter"
          }
        ],
        "responses": {
          "200": {
            "description": "Tracks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "tracks": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Track"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/playlists": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "listPlaylists",
        "summary": "Playlists that accept submissions",
        "security": [],
        "responses": {
          "200": {
            "description": "The six playlists. Use `id` as the `playlist` value when submitting.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "playlists": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Playlist"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submission-policy": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "getSubmissionPolicy",
        "summary": "Submission policy as JSON",
        "security": [],
        "responses": {
          "200": {
            "description": "Policy, accepted link hosts, rate limits, and status values.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "apiIndex",
        "summary": "List of endpoints",
        "security": [],
        "responses": {
          "200": {
            "description": "Endpoint index.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "statusTokenHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Status-Token",
        "description": "Per-submission secret returned as status_token by POST /api/v1/submit. Only the submitter has it. Not needed to submit."
      },
      "statusTokenQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "token",
        "description": "Same token as a query parameter. Prefer the header so the token doesn't end up in logs."
      }
    },
    "parameters": {
      "artistFilter": {
        "name": "artist",
        "in": "query",
        "required": false,
        "description": "Filter by artist id (see /api/v1/artists).",
        "schema": {
          "type": "string",
          "enum": [
            "miles-jc-million",
            "southern-bound",
            "jay-jc-cee",
            "outlaw-rambler",
            "vixens-venom"
          ]
        }
      }
    },
    "schemas": {
      "SubmissionRequest": {
        "type": "object",
        "additionalProperties": true,
        "description": "Unknown fields are ignored. Text is trimmed; control characters and angle brackets are removed. At least one of streaming_url, spotify_url, youtube_music_url is required.",
        "required": [
          "artist_name",
          "email",
          "song_title",
          "ai_music",
          "rights_confirmed",
          "submission_consent"
        ],
        "anyOf": [
          {
            "required": [
              "spotify_url"
            ]
          },
          {
            "required": [
              "youtube_music_url"
            ]
          },
          {
            "required": [
              "streaming_url"
            ]
          }
        ],
        "properties": {
          "artist_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Artist or band name as it appears on streaming services."
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254,
            "description": "Artist's contact email. Used to send one confirmation email for this submission and to reply about it. Never shown publicly and never added to a mailing list."
          },
          "song_title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "description": "Title of the track being submitted."
          },
          "spotify_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 500,
            "pattern": "^https://open\\.spotify\\.com/(intl-[a-z-]+/)?track/[A-Za-z0-9]+",
            "description": "Spotify single-track link, https://open.spotify.com/track/... No album, artist, or playlist links."
          },
          "youtube_music_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 500,
            "pattern": "^https://music\\.youtube\\.com/watch\\?",
            "description": "YouTube Music song link, https://music.youtube.com/watch?v=..."
          },
          "streaming_url": {
            "type": "string",
            "format": "uri",
            "maxLength": 500,
            "description": "Any https single-track link on an accepted host: open.spotify.com, music.youtube.com, youtube.com, www.youtube.com, m.youtube.com, youtu.be, music.apple.com, soundcloud.com, on.soundcloud.com, bandcamp.com and *.bandcamp.com, tidal.com, listen.tidal.com, deezer.com, link.deezer.com, music.amazon.com (and .co.uk, .ca, .com.au, .de), amazon.com/music/.... Spotify links must be /track/ links and YouTube Music links must be /watch?v= links. Playlist links are rejected."
          },
          "playlist": {
            "type": "string",
            "enum": [
              "country",
              "christian",
              "soul-rhythm",
              "alt-metal",
              "vault",
              "walkonrecords",
              "not-sure"
            ],
            "default": "not-sure",
            "description": "Which Walk On playlist the track fits. See /api/v1/playlists. Defaults to not-sure (we pick)."
          },
          "genre": {
            "type": "string",
            "maxLength": 60,
            "description": "Optional genre, free text, e.g. Country, Christian / Gospel, Soul / R&B, Metal."
          },
          "description": {
            "type": "string",
            "maxLength": 500,
            "description": "Optional short note about the song."
          },
          "ai_music": {
            "type": "boolean",
            "description": "Required disclosure. true if the track was made with AI (accepted when labeled), false if not."
          },
          "rights_confirmed": {
            "type": "boolean",
            "const": true,
            "description": "Must be true. The artist confirms they own or control the rights to the recording, or have clear permission from the rights holders. Only set after the artist confirms."
          },
          "submission_consent": {
            "type": "boolean",
            "const": true,
            "description": "Must be true. The artist explicitly authorizes this submission and agrees to https://walkonrecords.com/submissions. Only set after the artist approves."
          },
          "agent_name": {
            "type": "string",
            "maxLength": 80,
            "description": "Optional name of the AI assistant or tool submitting for the artist."
          },
          "submitted_via": {
            "type": "string",
            "enum": [
              "api",
              "web-form"
            ],
            "default": "api",
            "description": "Leave unset. The walkonrecords.com form sends web-form."
          },
          "website": {
            "type": "string",
            "maxLength": 0,
            "description": "Spam trap. Leave empty or omit. Any value returns 400 spam_detected."
          }
        }
      },
      "SubmissionCreated": {
        "type": "object",
        "required": [
          "success",
          "message",
          "reference",
          "status",
          "status_token"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "const": true
          },
          "message": {
            "type": "string"
          },
          "reference": {
            "type": "string",
            "pattern": "^WOR-\\d{4}-\\d{5,}$",
            "description": "Confirmation number to give the artist."
          },
          "status": {
            "type": "string",
            "const": "received"
          },
          "status_token": {
            "type": "string",
            "pattern": "^[a-f0-9]{48}$",
            "description": "Private secret for status lookups. Shown once; Walk On Records stores only a hash."
          },
          "status_url": {
            "type": "string",
            "format": "uri"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time"
          },
          "confirmation_email_queued": {
            "type": "boolean",
            "description": "True when a confirmation email (reference, song, playlist, rules, how to withdraw) was queued to the artist's email address. False for reserved test domains (example.com, *.test, *.invalid) or if email is temporarily unavailable; the reference in this response is then the only confirmation. Queued is not the same as delivered."
          },
          "label_notification_queued": {
            "type": "boolean",
            "description": "True when the submission was queued for email to Walk On Records (Info@walkonrecords.com). Either way, the submission is stored and will be reviewed."
          },
          "next_steps": {
            "type": "string"
          }
        }
      },
      "SubmissionStatus": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "reference": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "in_review",
              "added",
              "not_selected",
              "withdrawn"
            ]
          },
          "status_meaning": {
            "type": "string"
          },
          "artist_name": {
            "type": "string"
          },
          "song_title": {
            "type": "string"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "field": {
            "type": [
              "string",
              "null"
            ],
            "description": "Request field the error is about, or null for request-level errors."
          },
          "code": {
            "type": "string",
            "enum": [
              "required",
              "invalid_type",
              "too_long",
              "invalid_email",
              "invalid_url",
              "https_required",
              "host_not_allowed",
              "not_a_track_link",
              "invalid_choice",
              "must_be_true",
              "spam_detected",
              "invalid_json",
              "too_large",
              "unsupported_media_type",
              "duplicate",
              "rate_limited",
              "not_found",
              "method_not_allowed",
              "server_error"
            ]
          },
          "message": {
            "type": "string",
            "description": "Human-readable fix."
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "success",
          "errors"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "const": false
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "DuplicateResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ErrorResponse"
          },
          {
            "type": "object",
            "properties": {
              "reference": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "const": "duplicate"
              }
            }
          }
        ]
      },
      "Artist": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "profile_url": {
            "type": "string",
            "format": "uri"
          },
          "spotify_url": {
            "type": "string",
            "format": "uri"
          },
          "youtube_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "apple_music_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "genres": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string"
          }
        }
      },
      "Release": {
        "type": "object",
        "properties": {
          "artist_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "album",
              "ep",
              "single"
            ]
          },
          "year": {
            "type": "integer"
          },
          "release_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "spotify_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "purchase_url": {
            "type": "string"
          },
          "site_note": {
            "type": "string"
          },
          "hyperfollow_url": {
            "type": "string",
            "description": "DistroKid HyperFollow smart link, when the site lists one."
          }
        }
      },
      "Track": {
        "type": "object",
        "properties": {
          "artist_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "release_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "spotify_url": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Playlist": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Value to send as playlist."
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "spotify_id": {
            "type": "string"
          },
          "spotify_url": {
            "type": "string",
            "format": "uri"
          },
          "youtube_music_url": {
            "type": "string",
            "format": "uri"
          },
          "max_tracks": {
            "type": "integer",
            "const": 75
          },
          "rotation": {
            "type": "string"
          }
        }
      }
    }
  }
}
