PageSourceSearch

https://scribie.ai/_next/static/chunks/pages/docs/b2b-93d0b927c08e1038.js

js scribie.ai collected 2026-09-29 16:27:45 UTC 7,129 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2054],{91414:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/b2b",function(){return r(7081)}])},7081:function(e,t,r){"use strict";r.r(t),r.d(t,{useTOC:function(){return o}});var s=r(85893),i=r(37812),n=r(39150),d=r(38925);function o(e){return[{value:"End-to-end flow",id:"end-to-end-flow",depth:2},{value:"Authentication",id:"authentication",depth:2}]}t.default=(0,i.c)(function(e){let{toc:t=o(e)}=e,r={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",strong:"strong",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h1,{children:"B2B API"}),"\n",(0,s.jsxs)(r.p,{children:["This section documents the B2B-specific API flow. B2B accounts upload an audio/video file together with a RIS file, then place an order tying each file to a ",(0,s.jsx)(r.code,{children:"jobId"}),"."]}),"\n",(0,s.jsx)(r.h2,{id:t[0].id,children:t[0].value}),"\n",(0,s.jsxs)(r.ol,{children:["\n",(0,s.jsxs)(r.li,{children:[(0,s.jsx)(r.strong,{children:(0,s.jsx)(r.a,{href:"/docs/b2b/upload",children:"Upload"})})," — POST the audio file together with the RIS CSV (and optional DOCX template) to ",(0,s.jsx)(r.code,{children:"/files/upload"}),". The server stores the audio under the returned ",(0,s.jsx)(r.code,{children:"fileId"})," and the RIS files under ",(0,s.jsx)(r.code,{children:"${fileId}_ris.csv"})," / ",(0,s.jsx)(r.code,{children:"${fileId}_ris.docx"}),"."]}),"\n",(0,s.jsxs)(r.li,{children:[(0,s.jsx)(r.strong,{children:(0,s.jsx)(r.a,{href:"/docs/b2b/order",children:"Create order"})})," — POST to ",(0,s.jsx)(r.code,{children:"/orders"})," with ",(0,s.jsx)(r.code,{children:'orderType: "TRANSCRIPTION_FORMATTING"'})," and a ",(0,s.jsx)(r.code,{children:"jobIds"})," array that pairs each ",(0,s.jsx)(r.code,{children:"fileId"})," with its ",(0,s.jsx)(r.code,{children:"jobId"}),". The ",(0,s.jsx)(r.code,{children:"jobId"})," is ",(0,s.jsx)(r.strong,{children:"required"})," for B2B — it selects the correct row from the RIS CSV (matching the ",(0,s.jsx)(r.code,{children:"Job Number"})," column) and is persisted on the order as ",(0,s.jsx)(r.code,{children:"clientJobId"}),"."]}),"\n",(0,s.jsxs)(r.li,{children:[(0,s.jsx)(r.strong,{children:(0,s.jsx)(r.a,{href:"/docs/b2b/download-transcript",children:"Download transcript"})})," — once the order is delivered, GET ",(0,s.jsx)(r.code,{children:"/files/get-transcripts"})," with the ",(0,s.jsx)(r.code,{children:"fileId"})," and the desired ",(0,s.jsx)(r.code,{children:"type"})," (",(0,s.jsx)(r.code,{children:"txt"}),", ",(0,s.jsx)(r.code,{children:"docx"}),", ",(0,s.jsx)(r.code,{children:"pdf"}),", ",(0,s.jsx)(r.code,{children:"srt"}),", ",(0,s.jsx)(r.code,{children:"vtt"}),")."]}),"\n"]}),"\n",(0,s.jsx)(r.h2,{id:t[1].id,children:t[1].value}),"\n",(0,s.jsx)(r.p,{children:"All endpoints use Basic auth with your API key:"}),"\n",(0,s.jsx)(r.pre,{tabIndex:"0","data-language":"plaintext","data-word-wrap":"",children:(0,s.jsx)(r.code,{children:(0,s.jsx)(r.span,{children:(0,s.jsx)(r.span,{children:"Authorization: Basic YOUR_API_KEY"})})})}),"\n",(0,s.jsx)(r.p,{children:"The base URL is:"}),"\n",(0,s.jsx)(r.pre,{tabIndex:"0","data-language":"plaintext","data-word-wrap":"",children:(0,s.jsx)(r.code,{children:(0,s.jsx)(r.span,{children:(0,s.jsx)(r.span,{children:"https://scribie.com/api/v1"})})})})]})},"/docs/b2b",{filePath:"src/pages/docs/b2b/index.mdx",timestamp:1790324408e3,pageMap:n.v,frontMatter:{},title:"B2B API"},"undefined"==typeof RemoteContent?o:RemoteContent.useTOC)},39150:function(e,t,r){"use strict";r.d(t,{v:function(){return s}});let s=[{data:{docs:{title:"Docs",type:"page"}}},{name:"docs",route:"/docs",children:[{data:{index:"Introduction",users:{title:"Users",items:{profile:"User Profile",preferences:"User Preferences",credits:"User Credits",earnings:"User Earnings"}},teams:{title:"Teams",items:{list:"List Teams",create:"Create Team",update:"Update Team",members:"Team Members",invitations:"Team Invitations",rename:"Rename Team"}},files:{title:"Files",items:{list:"List Files",upload:"Upload File",delete:"Delete File",transcripts:"File Transcripts"}},orders:{title:"Orders",items:{list:"List Orders",create:"Create Order",options:"Order Options"}},"payment-methods":{title:"Payment Methods",items:{list:"List Payment Methods"}},invoices:{title:"Invoices",items:{list:"List Invoices",details:"Invoice Details"}},b2b:{title:"B2B API",display:"hidden",items:{index:"Overview",upload:"Upload File with RIS",order:"Create Order with Job ID","download-transcript":"Download Transcript"}}}},{name:"b2b",route:"/docs/b2b",children:[{data:{index:"Overview",upload:"Upload File with RIS",order:"Create Order with Job ID","download-transcript":"Download Transcript"}},{name:"download-transcript",route:"/docs/b2b/download-transcript",frontMatter:{
1sidebarTitle:"Download Transcript"}},{name:"index",route:"/docs/b2b",frontMatter:{sidebarTitle:"Index"}},{name:"order",route:"/docs/b2b/order",frontMatter:{sidebarTitle:"Order"}},{name:"upload",route:"/docs/b2b/upload",frontMatter:{sidebarTitle:"Upload"}}]},{name:"files",route:"/docs/files",children:[{name:"delete",route:"/docs/files/delete",frontMatter:{sidebarTitle:"Delete"}},{name:"list",route:"/docs/files/list",frontMatter:{sidebarTitle:"List"}},{name:"transcripts",route:"/docs/files/transcripts",frontMatter:{sidebarTitle:"Transcripts"}},{name:"upload",route:"/docs/files/upload",frontMatter:{sidebarTitle:"Upload"}}]},{name:"index",route:"/docs",frontMatter:{sidebarTitle:"Index"}},{name:"invoices",route:"/docs/invoices",children:[{name:"details",route:"/docs/invoices/details",frontMatter:{sidebarTitle:"Details"}},{name:"list",route:"/docs/invoices/list",frontMatter:{sidebarTitle:"List"}}]},{name:"orders",route:"/docs/orders",children:[{name:"create",route:"/docs/orders/create",frontMatter:{sidebarTitle:"Create"}},{name:"list",route:"/docs/orders/list",frontMatter:{sidebarTitle:"List"}},{name:"options",route:"/docs/orders/options",frontMatter:{sidebarTitle:"Options"}}]},{name:"payment-methods",route:"/docs/payment-methods",children:[{name:"list",route:"/docs/payment-methods/list",frontMatter:{sidebarTitle:"List"}}]},{name:"teams",route:"/docs/teams",children:[{name:"create",route:"/docs/teams/create",frontMatter:{sidebarTitle:"Create"}},{name:"invitations",route:"/docs/teams/invitations",frontMatter:{sidebarTitle:"Invitations"}},{name:"list",route:"/docs/teams/list",frontMatter:{sidebarTitle:"List"}},{name:"members",route:"/docs/teams/members",frontMatter:{sidebarTitle:"Members"}},{name:"rename",route:"/docs/teams/rename",frontMatter:{sidebarTitle:"Rename"}}]},{name:"users",route:"/docs/users",children:[{name:"credits",route:"/docs/users/credits",frontMatter:{sidebarTitle:"Credits"}},{name:"earnings",route:"/docs/users/earnings",frontMatter:{sidebarTitle:"Earnings"}},{name:"preferences",route:"/docs/users/preferences",frontMatter:{sidebarTitle:"Preferences"}},{name:"profile",route:"/docs/users/profile",frontMatter:{sidebarTitle:"Profile"}}]}]}]}},function(e){e.O(0,[7812,2888,9774,179],function(){return e(e.s=91414)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.