GET
/
repos
/
{repo_id}
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id} \
  --header 'Authorization: Bearer <token>'
{
  "repo_name": "repo-name",
  "description": "<string>",
  "repo_id": "example_id",
  "default_branch_id": "<string>",
  "default_branch_name": "<string>",
  "size_bytes": 123,
  "owner_user_id": "<string>",
  "created_timestamp": 123,
  "sync_git_repo_url": "<string>"
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
Example:

"example_id"

Response

200
application/json
Repo object with the requested identifier
repo_name
string
required
Required string length: 1 - 128
Example:

"repo-name"

repo_id
string
required
Example:

"example_id"

size_bytes
number
required
owner_user_id
string
required
created_timestamp
integer
required

Seconds since epoch UTC

description
string
default_branch_id
string
default_branch_name
string
sync_git_repo_url
string

Optional URL of the git repository being synced with the repo