Identifies the calling client as <name>/<version>, for example reunite-ui/0.92.1. Used for API consumer observability. Requests without it are attributed as unknown.
Retrieves the source of the project. A source in an external Git repository includes the credentialId of the credential that Redocly uses to access the repository.
Requires org.project.read permission.
Security
ApiKey
- Mock serverhttps://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/{orgId}/projects/{projectId}/sources/{sourceId}
- Production main server.https://app.cloud.redocly.com/api/orgs/{orgId}/projects/{projectId}/sources/{sourceId}
- Production EU server.https://app.cloud.eu.redocly.com/api/orgs/{orgId}/projects/{projectId}/sources/{sourceId}
curl -i -X GET \
https://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/org_01h1s5z6vf2mm1mz3hevnn9va7/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/sources/rem_01h1s5z6vf2mm1mz3hevnn9va7 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-redocly-client: reunite-ui/0.92.1'Project source ID. Unique identifier prefixed with rem_.
Example:"rem_01hc2rvwxf7jyj1er504khx8e7"
Example:"https://app.cloud.redocly.com/api/orgs/org_01hh1t9sa6gwfv5naz04gr7ehm/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/sources/rem_01hc2rvwxf7jyj1er504khx8e7"
Example:"Repo Name"
Example:"https://github.com/example/example"
Example:true
Example:true
Enum:"GITHUB_CLOUD""GITHUB_SERVER""GITLAB_CLOUD""GITLAB_SELF_MANAGED""BITBUCKET_CLOUD""BITBUCKET_DATACENTER""AZURE_DEVOPS_SERVICES""AZURE_DEVOPS_SERVER"
Whether Redocly can access the repository with the source credential. false usually means that the access token is expired or revoked.
Example:true
Example:"cred_01hc2rvwxf7jyj1er504khx8e7"
Example:"azure-test-org"
Enum:"NONE""SELECTED""ALL"
Whether pull requests start builds when they target the main branch or, with the SELECTED strategy, a branch in selectedDeployBranches. Has no effect with the ALL strategy, which builds every branch.
Default:false
Response
{ "id": "rem_01hc2rvwxf7jyj1er504khx8e7", "uri": "https://app.cloud.redocly.com/api/orgs/org_01hh1t9sa6gwfv5naz04gr7ehm/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/sources/rem_01hc2rvwxf7jyj1er504khx8e7", "branchName": "main", "contentPath": "/", "repoName": "Repo Name", "repoUrl": "https://github.com/example/example", "isInternal": true, "isMonorepo": true, "providerType": "GITHUB_CLOUD", "providerConfig": { "id": "string", "type": "GITHUB_CLOUD", "name": "Redocly GitLab", "publicConfig": { … }, "isCustom": true }, "canAccessRepo": true, "credentialId": "cred_01hc2rvwxf7jyj1er504khx8e7", "sourceId": "rem_01hc2rvwxf7jyj1er504khx8e7", "namespaceId": "azure-test-org", "repositoryId": "redocly-testing", "branchDeployStrategy": "NONE", "selectedDeployBranches": [ "string" ], "prDeploysEnabled": true, "forksPrDeploysEnabled": true, "visualReviewCheckDisabled": false, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "object": "projectSource" }