A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.
A code provider connection configured for a workspace.
When the code provider connection was last updated in Agen.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agen","colors":{"primary":"#009B53","light":"#009B53","dark":"#009B53"},"logo":{"light":"https://mintcdn.com/agen/2MIX_2KJFwHtuKkg/logo/light.svg?fit=max\u0026auto=format\u0026n=2MIX_2KJFwHtuKkg\u0026q=85\u0026s=31ddbe404217afcd3a9fad7570810a5a","dark":"https://mintcdn.com/agen/2MIX_2KJFwHtuKkg/logo/dark.svg?fit=max\u0026auto=format\u0026n=2MIX_2KJFwHtuKkg\u0026q=85\u0026s=aca515dbf28178f321daded8114ccf13"},"favicon":{"light":"https://mintcdn.com/agen/ko-W6P-LE2M7rk_a/favicon-light.svg?fit=max\u0026auto=format\u0026n=ko-W6P-LE2M7rk_a\u0026q=85\u0026s=e13b25995a9d06ad67d10f9eb82c9229","dark":"https://mintcdn.com/agen/ko-W6P-LE2M7rk_a/favicon-dark.svg?fit=max\u0026auto=format\u0026n=ko-W6P-LE2M7rk_a\u0026q=85\u0026s=e3316779db5c6674762b9270449d9ece"},"navbar":{"links":[{"href":"mailto:support@agen.ai","label":"Support"}],"primary":{"type":"button","label":"Agen Dashboard","href":"https://app.agenhq.com"}},"footer":{"socials":{"x":"https://x.com/agenhq","github":"https://github.com/agenhq"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Agen Web Portal","icon":"globe","href":"https://app.agenhq.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agen","hasAudioNarration":false,"actualSubdomain":"agen","customDomains":["docs.agenhq.com"],"gitSource":{"type":"gitlab","owner":"agenhq","repo":"docs","projectId":79798455,"deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21ebb4642f8d7778392d9f","collectionId":"ca06dc91-b1b9-49c5-8e23-8c51a078a714","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21ebb4642f8d7778392d9f:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Coding Agent API","count":39},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Repositories","count":7},{"language":"default","tag":"Sessions","count":6},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"Code Providers","count":4},{"language":"default","tag":"Schemas","count":3},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"CLI","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"coding-agent-api/schemas/code-provider","slug":"/coding-agent-api/schemas/code-provider","pageMetadata":{"openapi-schema":"CodeProviders","description":"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.","title":null,"href":"/coding-agent-api/schemas/code-provider"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi-schema":"CodeProviders","description":"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.","title":null,"href":"/coding-agent-api/schemas/code-provider"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"schemaData":{"type":"object","required":["id","workspace_id","user_id","platform","name","base_url","metadata","created_at","updated_at"],"properties":{"id":{"readOnly":true,"description":"The unique identifier of the code provider connection inside Agen.","type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"workspace_id":{"readOnly":true,"description":"The workspace that owns this code provider connection.","type":"string","isRequired":true,"uniqueKey":"workspace_id","typeLabel":"string"},"user_id":{"readOnly":true,"description":"The user who connected this code provider account.","type":"string","isRequired":true,"uniqueKey":"user_id","typeLabel":"string"},"platform":{"oneOf":[{"type":"string","const":"gitlab","isRequired":true,"uniqueKey":"platform.oneOf.0","typeLabel":"string"},{"type":"string","const":"github","isRequired":true,"uniqueKey":"platform.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"platform","typeLabel":"string"},"name":{"description":"A human-readable name for the connected code provider account.","type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"base_url":{"description":"The base URL Agen should use to talk to the code hosting platform API.","type":"string","isRequired":true,"uniqueKey":"base_url","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","required":["type","token"],"properties":{"type":{"const":"gitlab_personal_access_token","type":"string","isRequired":true,"uniqueKey":"metadata.oneOf.0.type","typeLabel":"string"},"token":{"description":"The GitLab personal access token Agen should store securely for this connection. Returned values are masked in API responses.","type":"string","isRequired":true,"uniqueKey":"metadata.oneOf.0.token","typeLabel":"string"}},"isRequired":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","token"],"properties":{"type":{"const":"github_personal_access_token","type":"string","isRequired":true,"uniqueKey":"metadata.oneOf.1.type","typeLabel":"string"},"token":{"description":"The GitHub personal access token Agen should store securely for this connection. Returned values are masked in API responses.","type":"string","isRequired":true,"uniqueKey":"metadata.oneOf.1.token","typeLabel":"string"}},"isRequired":true,"uniqueKey":"metadata.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","access_token"],"properties":{"type":{"const":"github_oauth","type":"string","isRequired":true,"uniqueKey":"metadata.oneOf.2.type","typeLabel":"string"},"access_token":{"description":"The GitHub OAuth access token Agen stores securely for this connection. Returned values are masked in API responses.","type":"string","isRequired":true,"uniqueKey":"metadata.oneOf.2.access_token","typeLabel":"string"},"login":{"type":"string","uniqueKey":"metadata.oneOf.2.login","typeLabel":"string"},"github_user_id":{"type":"number","uniqueKey":"metadata.oneOf.2.github_user_id","typeLabel":"number"}},"isRequired":true,"uniqueKey":"metadata.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"},"created_at":{"format":"date-time","readOnly":true,"description":"When the code provider connection was created in Agen.","type":"string","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"format":"date-time","readOnly":true,"description":"When the code provider connection was last updated in Agen.","type":"string","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"description":"A code provider connection configured for a workspace.","uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"id":"\u003cstring>","workspace_id":"\u003cstring>","user_id":"\u003cstring>","platform":"gitlab","name":"\u003cstring>","base_url":"\u003cstring>","metadata":{"type":"gitlab_personal_access_token","token":"\u003cstring>"},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}},"originalFileLocation":"coding-agent-api/openapi.json"},"subdomain":"agen","siteName":"Agen","title":"Code provider - Agen","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-25T13:52:48.324Z","originalFileLocation":"coding-agent-api/schemas/code-provider.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agen\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Code provider - Agen\">\u003cmeta data-mint-head property=\"og:description\" content=\"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agen\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agen.mintlify.app/_mintlify/api/og/v2?division=Schemas\u0026amp;title=Code+provider\u0026amp;description=A+code+provider+either+a+gitlab+or+github+personal+access+token.+The+code+providers+are+used+by+the+agents+to+connect+to+the+user+code%2C+push+changes%2C+create+com\u0026amp;theme=cf497355fa79a1ba64b64c86\u0026amp;signature=c1ae3181ec2813a5eca3be97adc6292fce084c8e7135805fd749ec5e19948d1b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Code provider - Agen\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agen.mintlify.app/_mintlify/api/og/v2?division=Schemas\u0026amp;title=Code+provider\u0026amp;description=A+code+provider+either+a+gitlab+or+github+personal+access+token.+The+code+providers+are+used+by+the+agents+to+connect+to+the+user+code%2C+push+changes%2C+create+com\u0026amp;theme=cf497355fa79a1ba64b64c86\u0026amp;signature=c1ae3181ec2813a5eca3be97adc6292fce084c8e7135805fd749ec5e19948d1b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/agen/8pVrgwrNaPNPy_LP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agen\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#009B53\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/coding-agent-api/schemas/code-provider.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agenhq.com/#organization\",\"name\":\"Agen\",\"url\":\"https://docs.agenhq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agen/2MIX_2KJFwHtuKkg/logo/light.svg?fit=max\u0026auto=format\u0026n=2MIX_2KJFwHtuKkg\u0026q=85\u0026s=31ddbe404217afcd3a9fad7570810a5a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agenhq.com#website\",\"name\":\"Agen\",\"url\":\"https://docs.agenhq.com\",\"publisher\":{\"@id\":\"https://docs.agenhq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider#webpage\",\"url\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider\",\"name\":\"Code provider\",\"description\":\"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.\",\"dateModified\":\"2026-04-25T13:52:48.324Z\",\"isPartOf\":{\"@id\":\"https://docs.agenhq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agen\",\"item\":\"https://docs.agenhq.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code provider\",\"item\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider#apireference\",\"headline\":\"Code provider\",\"name\":\"Code provider\",\"description\":\"A code provider either a gitlab or github personal access token. The code providers are used by the agents to connect to the user code, push changes, create commits, merge pull requests, etc.\",\"url\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agenhq.com/coding-agent-api/schemas/code-provider#webpage\"},\"dateModified\":\"2026-04-25T13:52:48.324Z\",\"publisher\":{\"@id\":\"https://docs.agenhq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agenhq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agen\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Agen","nav":{"global":{"anchors":[{"anchor":"Agen Web Portal","icon":"globe","href":"https://app.agenhq.com"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":""},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Core Concepts","pages":[{"title":"Session Page","href":"/essentials/session"},{"title":"Scheduled Agents","href":"/essentials/scheduled-agents"},{"title":"Secure Sandboxes","href":"/essentials/sandboxes"},{"title":"Manage Team \u0026 Billing","href":"/essentials/team-billing"}]},{"group":"CLI","pages":[{"title":"Agen CLI","href":"/cli"}]}]},{"tab":"Coding Agent API","groups":[{"group":"Coding Agent API","pages":[{"title":"Get started","href":"/coding-agent-api/get-started"},{"group":"Code Providers","pages":[{"title":"List code providers","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/code-providers","href":"/api-reference/code-providers/list-code-providers"},{"title":"Create code providers","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json post /api/v1/code-providers","href":"/api-reference/code-providers/create-code-providers"},{"title":"Delete code providers","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json delete /api/v1/code-providers/{providerId}","href":"/api-reference/code-providers/delete-code-providers"},{"title":"Update code providers","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json patch /api/v1/code-providers/{providerId}","href":"/api-reference/code-providers/update-code-providers"}]},{"group":"Repositories","pages":[{"title":"List repositories","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/repositories","href":"/api-reference/repositories/list-repositories"},{"title":"Create repositories","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json post /api/v1/repositories","href":"/api-reference/repositories/create-repositories"},{"title":"Get repositories","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/repositories/{id}","href":"/api-reference/repositories/get-repositories"},{"title":"Delete repositories","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json delete /api/v1/repositories/{id}","href":"/api-reference/repositories/delete-repositories"},{"title":"Update repositories","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json patch /api/v1/repositories/{id}","href":"/api-reference/repositories/update-repositories"},{"title":"Get repository analysis","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/repositories/{id}/analysis","href":"/api-reference/repositories/get-repository-analysis"},{"title":"Analyze repository","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json post /api/v1/repositories/{id}/analyze","href":"/api-reference/repositories/analyze-repository"}]},{"group":"Sessions","pages":[{"title":"Get sessions","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/sessions/{sessionId}","href":"/api-reference/sessions/get-sessions"},{"title":"Update sessions","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json patch /api/v1/sessions/{sessionId}","href":"/api-reference/sessions/update-sessions"},{"title":"List sessions","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Create sessions","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json post /api/v1/sessions","href":"/api-reference/sessions/create-sessions"},{"title":"Get the session timeline events","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json get /api/v1/sessions/{sessionId}/events","href":"/api-reference/sessions/get-the-session-timeline-events"},{"title":"Send a user message to the agent in a session","description":"Sends a new message from the user to the coding agent working in the session. The message is stored as a session event with the `user_message` type, then the agent either starts processing it immediately or the message is queued if the agent is already busy.\n\nRequired API key scopes: any of `sessions:write`, `sessions:all`, `all:write`, `all:all`.","deprecated":null,"version":null,"openapi":"/coding-agent-api/openapi.json post /api/v1/sessions/{sessionId}/messages","href":"/api-reference/sessions/send-a-user-message-to-the-agent-in-a-session"}]}]},{"group":"Schemas","pages":[{"title":null,"href":"/coding-agent-api/schemas/code-provider"},{"description":"A code repository, which can be connected to an agent to allow it to read and write code.","title":null,"href":"/coding-agent-api/schemas/repository"},{"title":null,"href":"/coding-agent-api/schemas/session"}]}]}]},"title":"Code provider - Agen","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}