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 a remote of the project. A Git remote includes the credentialId of the credential that Redocly uses to access its repository.
Requires project.remotes.read permission.
- Mock serverhttps://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/{orgId}/projects/{projectId}/remotes/{remoteId}
- Production main server.https://app.cloud.redocly.com/api/orgs/{orgId}/projects/{projectId}/remotes/{remoteId}
- Production EU server.https://app.cloud.eu.redocly.com/api/orgs/{orgId}/projects/{projectId}/remotes/{remoteId}
curl -i -X GET \
https://redocly.com/_mock/docs/platform/customization/reunite-api/openapi/orgs/org_01h1s5z6vf2mm1mz3hevnn9va7/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/remotes/rem_01h1s5z6vf2mm1mz3hevnn9va7 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-redocly-client: reunite-ui/0.92.1'Remote ID. Unique identifier prefixed with rem_.
Path to the folder in the local repository where remote content is mounted. Paths outside of the project's contentPath are not allowed.
Time when Redocly turned off auto-sync after repeated failed updates. null when auto-sync is on or a user turned it off.
Last time remote processed the default branch update. null when the remote has never been synced. For URL remotes it is updated on interval specified for the remote.
Number of failed attempts to sync the remote. If this value exceeds 6, automatic synchronization is disabled.
{ "id": "rem_01h1s5z6vf2mm1mz3hevnn9va7", "type": "GIT", "mountPath": "apis/test/@v1", "autoSync": true, "autoSyncDisabledAt": "2021-08-25T10:00:00.000Z", "autoMerge": false, "createdAt": "2023-06-07T00:00:00Z", "updatedAt": "2023-06-07T00:00:00Z", "editedAt": "2023-06-07T00:00:00Z", "createdById": "usr_01hh1t9sa6gwfv5naz04gr7ehm", "editedById": "usr_01hh1t9sa6gwfv5naz04gr7ehm", "lastSyncedAt": "2021-08-25T10:00:00.000Z", "attempts": 1, "providerType": "GITHUB_CLOUD", "namespaceId": "string", "repositoryId": "string", "mountBranchName": "main", "contentPath": "string", "credentialId": "cred_01hc2rvwxf7jyj1er504khx8e7", "branchName": "dev", "contentType": "FILE", "url": null, "interval": null, "object": "remote", "uri": "https://app.cloud.redocly.com/api/orgs/org_01hh1t9sa6gwfv5naz04gr7ehm/projects/prj_01hh1t9sa6gwfv5naz04gr7ehm/remotes/rem_01h1s5z6vf2mm1mz3hevnn9va7", "lastFinishedGitUpdateId": "grupd_01jw8fczg4n4fcwkkg0nac3ddh", "errors": null }