{"openapi":"3.1.0","info":{"title":"137 Lofi API","version":"0.1.0","description":"Licensed lofi music for AI agents making organic social videos. The same tools are available over MCP at /mcp."},"servers":[{"url":"https://lofi.137music.com"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}}}},"paths":{"/v1/tracks":{"get":{"operationId":"searchTracks","summary":"Search tracks (no key needed)","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"mood","in":"query","required":false,"schema":{"type":"string"}},{"name":"bpm_min","in":"query","required":false,"schema":{"type":"integer"}},{"name":"bpm_max","in":"query","required":false,"schema":{"type":"integer"}},{"name":"min_duration_s","in":"query","required":false,"schema":{"type":"integer"}},{"name":"vocals","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer"}},{"name":"seed","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Matching tracks with preview links"}}}},"/v1/keys":{"post":{"operationId":"createFreeKey","summary":"Create a free API key (10 licenses a month)","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}},"responses":{"201":{"description":"Key created; shown once"},"429":{"description":"Too many keys","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/licenses":{"post":{"operationId":"licenseTrack","summary":"License a track for organic posts on one account","security":[{"bearer":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["track_id","account"],"properties":{"track_id":{"type":"string"},"account":{"type":"string","description":"platform:handle, e.g. youtube:@channel"},"use":{"type":"string","enum":["organic"]}}}}}},"responses":{"201":{"description":"License with download links, credit line and Content ID status"},"402":{"description":"Monthly limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/licenses/{license_id}":{"get":{"operationId":"verifyLicense","summary":"Public license verification","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"License details"}}}},"/v1/reports":{"post":{"operationId":"reportPost","summary":"Record where a licensed track was posted","security":[{"bearer":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["license_id","post_url"],"properties":{"license_id":{"type":"string"},"post_url":{"type":"string"}}}}}},"responses":{"201":{"description":"Recorded"}}}}}}