## Retrieve `client.vals.branches.retrieve(stringvalId, stringbranchId, RequestOptionsoptions?): BranchRetrieveResponse` **get** `/v2/vals/{val_id}/branches/{branch_id}` Get a branch by id ### Parameters - **valId:** `string` - **branchId:** `string` ### Returns - `BranchRetrieveResponse` A Branch - **id:** `string` The id of the branch - **createdAt:** `string` - **forkedBranchId:** `string | null` The id of the branch this branch was forked from - **links:** `Links` - **html:** `string` The URL of this resource on Val Town - **self:** `string` The URL of this resource on this API - **name:** `string` - **updatedAt:** `string` - **version:** `number` ### Example ```node import ValTown from '@valtown/sdk'; const client = new ValTown(); const branch = await client.vals.branches.retrieve( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', ); console.log(branch.id); ```