curl --request GET \
--url https://api.example.com/api/source \
--header 'Authorization: Bearer <token>'{
"source": "<string>",
"language": "<string>",
"path": "<string>",
"repo": "<string>",
"repoCodeHostType": "github",
"webUrl": "<string>",
"repoDisplayName": "<string>",
"repoExternalWebUrl": "<string>",
"externalWebUrl": "<string>"
}curl --request GET \
--url https://api.example.com/api/source \
--header 'Authorization: Bearer <token>'{
"source": "<string>",
"language": "<string>",
"path": "<string>",
"repo": "<string>",
"repoCodeHostType": "github",
"webUrl": "<string>",
"repoDisplayName": "<string>",
"repoExternalWebUrl": "<string>",
"externalWebUrl": "<string>"
}Send either a Sourcebot API key (sbk_... or legacy sourcebot-...) or, on EE instances with OAuth enabled, an OAuth access token (sboa_...) in the Authorization header.
File source and metadata.
github, gitlab, gitea, gerrit, bitbucketServer, bitbucketCloud, genericGitHost, azuredevops Was this page helpful?