{"openapi":"3.1.0","info":{"title":"Builders AQP","version":"1.0.0","summary":"Read-only directory of Arequipa's innovation ecosystem, plus private draft submissions.","description":"Actors and categories are public. Submissions are stored as status Borrador and are never returned by the read endpoints or published automatically."},"servers":[{"url":"https://ecosistemarequipa.com"}],"paths":{"/api/v1/actors":{"get":{"operationId":"listActors","summary":"List actors","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Match against name and description."},{"name":"category","in":"query","schema":{"type":"string"},"description":"Category slug."},{"name":"district","in":"query","schema":{"type":"string"},"description":"District substring."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Matching actors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorPage"}}}},"400":{"description":"Invalid limit, offset, or filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/actors/{slug}":{"get":{"operationId":"getActor","summary":"Get one actor","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The actor.","content":{"application/json":{"schema":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/Actor"}},"required":["actor"]}}}},"404":{"description":"Unknown slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/categories":{"get":{"operationId":"listCategories","summary":"List categories","responses":{"200":{"description":"Directory categories.","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"$ref":"#/components/schemas/Category"}}},"required":["categories"]}}}}}}},"/api/v1/openapi.json":{"get":{"operationId":"openApi","summary":"This document","responses":{"200":{"description":"OpenAPI 3.1 document."}}}},"/api/v1/submissions":{"get":{"operationId":"issueSubmissionToken","summary":"Issue a signed fill-time token","description":"Does not list submissions. Returns a token that POST must echo after the minimum fill time.","responses":{"200":{"description":"Token for the next POST.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionToken"}}}}}},"post":{"operationId":"submitActor","summary":"File a draft actor proposal","description":"Always stored as status Borrador. Never published automatically. Not readable from this API.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionInput"}}}},"responses":{"200":{"description":"Draft accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionAccepted"}}}},"400":{"description":"Validation, fill-time, or token error."},"409":{"description":"An actor with the same name or website already exists."},"429":{"description":"Rate limit for this IP or email."}}}}},"components":{"schemas":{"ActorSummary":{"type":"object","required":["slug","name","category","district","url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"district":{"type":"string"},"url":{"type":"string","format":"uri"}}},"ActorPage":{"type":"object","required":["total","limit","offset","actors"],"properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"actors":{"type":"array","items":{"$ref":"#/components/schemas/ActorSummary"}}}},"Actor":{"type":"object","required":["slug","name","category","categorySlug","url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"categorySlug":{"type":"string"},"description":{"type":"string"},"district":{"type":"string"},"address":{"type":"string"},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]},"web":{"type":"string"},"socials":{"type":"string"},"recentActivity":{"type":"string"},"sourceUrl":{"type":"string"},"verifiedAt":{"type":"string"},"url":{"type":"string","format":"uri"}}},"Category":{"type":"object","required":["slug","name","emoji","actorCount","url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"emoji":{"type":"string"},"actorCount":{"type":"integer"},"url":{"type":"string","format":"uri"}}},"SubmissionInput":{"type":"object","required":["nombre","categoria","fuente_url","email_contacto","started_at"],"properties":{"nombre":{"type":"string","maxLength":200},"categoria":{"type":"string","description":"Category raw value (universidad) or slug (universidades)."},"web":{"type":"string"},"direccion":{"type":"string"},"fuente_url":{"type":"string","format":"uri"},"email_contacto":{"type":"string","format":"email"},"started_at":{"type":"string","description":"Signed token from GET /api/v1/submissions."},"company":{"type":"string","description":"Honeypot. Must be empty."}}},"SubmissionToken":{"type":"object","required":["started_at","min_fill_ms"],"properties":{"started_at":{"type":"string"},"min_fill_ms":{"type":"integer"}}},"SubmissionAccepted":{"type":"object","required":["ok","status"],"properties":{"ok":{"type":"boolean","const":true},"status":{"type":"string","const":"Borrador"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}