{"openapi":"3.1.0","info":{"title":"IndustryLink publishing API","version":"1.0.0","description":"Publish a paid article, event or startup listing on IndustryLink and pay for it in USDC/USDT on Ethereum. Prices: article $49, event $49, startup $49. Only receiving wallet: 0xB0F5d11619E9F3F9928B098d0B3BF0d38e9F0f3F; token contracts: USDC 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, USDT 0xdAC17F958D2ee523a2206206994597C13D831ec7. Step-by-step guide: https://publish.industrylink.online/llms.txt"},"servers":[{"url":"https://publish.industrylink.online"}],"security":[{"bearer":[]}],"paths":{"/api/auth/nonce":{"get":{"summary":"Get a one-time sign-in message","security":[],"parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string"},"description":"Your wallet address"}],"responses":{"200":{"description":"Sign `message` with personal_sign (EIP-191)","content":{"application/json":{"schema":{"type":"object","properties":{"nonce":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/auth/verify":{"post":{"summary":"Sign in; returns a bearer token","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message","signature","wantToken"],"properties":{"message":{"type":"string"},"signature":{"type":"string"},"wantToken":{"type":"boolean","const":true}}}}}},"responses":{"200":{"description":"Token valid 7 days","content":{"application/json":{"schema":{"type":"object","properties":{"wallet":{"type":"string"},"token":{"type":"string"},"expiresInDays":{"type":"integer"}}}}}},"400":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/submissions":{"get":{"summary":"Everything this wallet created","responses":{"200":{"description":"List","content":{"application/json":{"schema":{"type":"object","properties":{"submissions":{"type":"array","items":{"$ref":"#/components/schemas/Submission"}}}}}}}}},"post":{"summary":"Create an unpaid draft","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Article"},{"$ref":"#/components/schemas/Event"},{"$ref":"#/components/schemas/Startup"}]}}}},"responses":{"200":{"description":"Draft saved","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"priceUsd":{"type":"string"},"status":{"type":"string"}}}}}},"400":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/submissions/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Status, live address and next step","responses":{"200":{"description":"Item","content":{"application/json":{"schema":{"type":"object","properties":{"submission":{"$ref":"#/components/schemas/Submission"},"liveUrl":{"type":["string","null"]},"next":{"type":"string"}}}}}},"404":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"summary":"Edit an unpaid draft, or send a change to a published event/startup (reviewed first)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Same fields as when creating, without kind and rules"}}}},"responses":{"200":{"description":"Saved; edit=true when it waits for review"},"400":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Delete an unpaid draft; with ?change=1 withdraw a waiting change","parameters":[{"name":"change","in":"query","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Done"},"409":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/submissions/{id}/pay":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Payment instructions: one plain ERC-20 transfer","responses":{"200":{"description":"Where and how much","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayInstructions"}}}},"404":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Report the payment transaction; repeat while state is pending","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["txHash"],"properties":{"txHash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}}}}},"responses":{"200":{"description":"pending or paid","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["pending","paid"]},"note":{"type":"string"}}}}}},"409":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Problem with the request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Token from /api/auth/verify. Send no Origin header."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"field":{"type":"string","description":"The field the problem is about, when there is one"},"retryAfterSeconds":{"type":"integer"}}},"Article":{"type":"object","required":["kind","rules","title","summary","body","projectName","projectUrl","category"],"properties":{"kind":{"const":"article"},"rules":{"type":"boolean","const":true,"description":"Accept the publishing rules and terms"},"projectUrl":{"type":"string","format":"uri","pattern":"^https://"},"contact":{"type":"string","minLength":0,"maxLength":120,"description":"Optional, never published"},"image":{"type":"string","contentEncoding":"base64","description":"Optional banner, base64 or data: URL. JPEG/PNG/WebP, max 2 MB, at least 800x400, landscape."},"title":{"type":"string","minLength":10,"maxLength":120},"summary":{"type":"string","minLength":40,"maxLength":300},"body":{"type":"string","minLength":600,"maxLength":12000},"projectName":{"type":"string","minLength":2,"maxLength":80},"category":{"enum":["bitcoin","altcoins","defi","rwa","markets","regulation","nfts-gaming","technology"]}}},"Event":{"type":"object","required":["kind","rules","title","summary","body","projectName","projectUrl","details"],"properties":{"kind":{"const":"event"},"rules":{"type":"boolean","const":true,"description":"Accept the publishing rules and terms"},"projectUrl":{"type":"string","format":"uri","pattern":"^https://"},"contact":{"type":"string","minLength":0,"maxLength":120,"description":"Optional, never published"},"image":{"type":"string","contentEncoding":"base64","description":"Optional banner, base64 or data: URL. JPEG/PNG/WebP, max 2 MB, at least 800x400, landscape."},"title":{"type":"string","minLength":5,"maxLength":120,"description":"Event name"},"summary":{"type":"string","minLength":30,"maxLength":300},"body":{"type":"string","minLength":150,"maxLength":5000},"projectName":{"type":"string","minLength":2,"maxLength":80,"description":"Organiser"},"details":{"type":"object","required":["eventType","sectors","start","end","online"],"properties":{"eventType":{"enum":["conference","meetup","hackathon","webinar","launch","other"]},"sectors":{"type":"array","items":{"enum":["crypto","business"]},"minItems":1},"start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"end":{"type":"string","format":"date","description":"YYYY-MM-DD"},"online":{"type":"boolean"},"location":{"type":"string","minLength":0,"maxLength":100,"description":"City, Country; required unless online"}}}}},"Startup":{"type":"object","required":["kind","rules","title","summary","body","projectUrl","logo","details"],"properties":{"kind":{"const":"startup"},"rules":{"type":"boolean","const":true,"description":"Accept the publishing rules and terms"},"projectUrl":{"type":"string","format":"uri","pattern":"^https://"},"contact":{"type":"string","minLength":0,"maxLength":120,"description":"Optional, never published"},"image":{"type":"string","contentEncoding":"base64","description":"Optional banner, base64 or data: URL. JPEG/PNG/WebP, max 2 MB, at least 800x400, landscape."},"title":{"type":"string","minLength":2,"maxLength":80,"description":"Startup name"},"summary":{"type":"string","minLength":20,"maxLength":200,"description":"Tagline"},"body":{"type":"string","minLength":150,"maxLength":6000,"description":"Description"},"logo":{"type":"string","contentEncoding":"base64","description":"Required. Roughly square, at least 200x200, max 1 MB"},"details":{"type":"object","required":["sectors","online"],"properties":{"sectors":{"type":"array","items":{"enum":["crypto","business"]},"minItems":1},"online":{"type":"boolean"},"country":{"type":"string","minLength":0,"maxLength":60,"description":"Required unless online"},"socials":{"type":"object","properties":{"x":{"type":"string","description":"https link on x.com or twitter.com"},"youtube":{"type":"string","description":"https link on youtube.com or youtu.be"},"discord":{"type":"string","description":"https link on discord.gg or discord.com"},"telegram":{"type":"string","description":"https link on t.me or telegram.me"},"linkedin":{"type":"string","description":"https link on linkedin.com"},"instagram":{"type":"string","description":"https link on instagram.com"}}},"founders":{"type":"array","maxItems":5,"items":{"type":"object","required":["name","url"],"properties":{"name":{"type":"string","minLength":2,"maxLength":80},"url":{"type":"string","description":"https link on linkedin.com"}}}},"rounds":{"type":"array","maxItems":5,"description":"Information only. End date required; at most 6 months each.","items":{"type":"object","required":["type","start","end"],"properties":{"type":{"type":"string","minLength":2,"maxLength":30,"description":"e.g. Pre-seed, Seed"},"start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"end":{"type":"string","format":"date","description":"YYYY-MM-DD"}}}}}}}},"Submission":{"type":"object","description":"status: draft | pending | published | rejected_refund | rejected_kept | unpublished","additionalProperties":true},"PayInstructions":{"type":"object","properties":{"state":{"type":"string"},"priceUsd":{"type":"string"},"chainId":{"type":"integer"},"to":{"type":"string"},"from":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"contract":{"type":"string"},"decimals":{"type":"integer"},"amountUnits":{"type":"string"}}}},"steps":{"type":"array","items":{"type":"string"}}}}}}}