[{"data":1,"prerenderedAt":109},["ShallowReactive",2],{"docs:\u002Fdocs\u002Fmanagement-api":3,"docs-navigation":69},{"id":4,"title":5,"body":6,"description":61,"extension":62,"meta":63,"navigation":64,"path":65,"seo":66,"stem":67,"__hash__":68},"docs\u002Fdocs\u002Fmanagement-api.md","Management API",{"type":7,"value":8,"toc":58},"minimark",[9,13,26,29,39],[10,11,5],"h1",{"id":12},"management-api",[14,15,16,17,21,22,25],"p",{},"Automate project administration, flag changes and user or segment synchronization with the management API at ",[18,19,20],"code",{},"https:\u002F\u002Fapi.dipswitch.co",". Its ",[18,23,24],{},"\u002Fv1"," routes use organization API tokens, which an owner or admin creates in the panel. Keep a token on the server or in your CI secret store.",[14,27,28],{},"Send the token as a Bearer credential. Every token has the same organization-wide access to project resources. Members, invitations, organization management, billing, usage and token management require a member session. A request with a Bearer token uses the token even when it also carries a panel session cookie.",[30,31,37],"pre",{"className":32,"code":34,"language":35,"meta":36},[33],"language-ts","export async function listProjects(token: string): Promise\u003Cunknown> {\n  const response = await fetch('https:\u002F\u002Fapi.dipswitch.co\u002Fv1\u002Fprojects', {\n    headers: { Authorization: `Bearer ${token}` },\n  })\n  if (!response.ok) throw new Error(`Dipswitch returned ${response.status}`)\n  return response.json()\n}\n","ts","",[18,38,34],{"__ignoreMap":36},[14,40,41,42,47,48,52,53,57],{},"Import the ",[43,44,46],"a",{"href":45},"\u002Fdocs\u002Fapi.openapi.json","generated Management API specification"," into an OpenAPI tool to browse every operation, request and response. The ",[43,49,51],{"href":50},"\u002Fdocs\u002Fedge.openapi.json","Edge specification"," covers flag evaluation. See ",[43,54,56],{"href":55},"\u002Fdocs\u002Frate-limits\u002F","Rate limits"," for retry behavior.",{"title":36,"searchDepth":59,"depth":59,"links":60},2,[],"Automate project administration, flag changes and user or segment synchronization with the management API at https:\u002F\u002Fapi.dipswitch.co. Its \u002Fv1 routes use organization API tokens, which an owner or admin creates in the panel. Keep a token on the server or in your CI secret store.","md",{},true,"\u002Fdocs\u002Fmanagement-api",{"title":5,"description":61},"docs\u002Fmanagement-api","ri832COxx52F5u92ulzgjvHFqN0KS1R2aIFd9ebeK50",[70,73,76,79,82,85,88,89,92,95,98,101,103,106],{"path":71,"title":72},"\u002Fdocs","Dipswitch documentation",{"path":74,"title":75},"\u002Fdocs\u002Fdotnet",".NET quickstart",{"path":77,"title":78},"\u002Fdocs\u002Fidentity","Verify user identity",{"path":80,"title":81},"\u002Fdocs\u002Fjava","Java quickstart",{"path":83,"title":84},"\u002Fdocs\u002Fjavascript","JavaScript quickstart",{"path":86,"title":87},"\u002Fdocs\u002Flaunchdarkly","Migrate from LaunchDarkly",{"path":65,"title":5},{"path":90,"title":91},"\u002Fdocs\u002Fnode","Node.js quickstart",{"path":93,"title":94},"\u002Fdocs\u002Fopenfeature","OpenFeature and OFREP",{"path":96,"title":97},"\u002Fdocs\u002Fphp","PHP quickstart",{"path":99,"title":100},"\u002Fdocs\u002Fplans","Plans and limits",{"path":102,"title":56},"\u002Fdocs\u002Frate-limits",{"path":104,"title":105},"\u002Fdocs\u002Freact","React quickstart",{"path":107,"title":108},"\u002Fdocs\u002Fvue","Vue quickstart",1795767833783]