# "Approvals" Endpoints - GET Get timesheet setups

**URL:** <https://community.toggl.com/t/approvals-endpoints-get-get-timesheet-setups/388>\
**Category:** API References\
**Tags:** timesheets, approvals, api, endpoints, get\
**Created:** [December 2, 2024, 5:36pm UTC](https://community.toggl.com/t/approvals-endpoints-get-get-timesheet-setups/388 "2024-12-02T17:36:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 5:36pm UTC](https://community.toggl.com/t/approvals-endpoints-get-get-timesheet-setups/388/1 "2024-12-02T17:36:32Z")

</div>

```auto
https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/timesheet_setups

```

Get timesheet setups for a given workspace.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::GET, "https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/timesheet_setups".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/approvals/#parameters)

#### Path[​](https://engineering.toggl.com/docs/api/approvals/#path)

| name | type | required | description |
| --- | --- | --- | --- |
| workspace\_id | integer | true | Numeric ID of the workspace |

#### Query[​](https://engineering.toggl.com/docs/api/approvals/#query)

| name | type | required | description |
| --- | --- | --- | --- |
| member\_ids | integer | false | Numeric ID of the members, comma-separated |
| approver\_ids | integer | false | Numeric ID of the approvers, comma-separated |
| sort\_field | string | false | Field used for sorting, default start\_date. |
| sort\_order | string | false | Sort order. |

### Response[​](https://engineering.toggl.com/docs/api/approvals/#response)

#### 200[​](https://engineering.toggl.com/docs/api/approvals/#200)

| Name | Type | Description |
| --- | --- | --- |
| data | Array of object | - |

##### data[​](https://engineering.toggl.com/docs/api/approvals/#data)

| Name | Type | Description |
| --- | --- | --- |
| approver\_id | integer | - |
| approver\_name | string | - |
| approvers | Array of object | - |
| end\_date | string | - |
| errors | Array of object | - |
| id | integer | - |
| member\_id | integer | - |
| member\_name | string | - |
| periodicity | string | - |
| permissions | string | - |
| reminder\_day | string | - |
| reminder\_time | string | - |
| start\_date | string | - |
| workspace\_id | integer | - |

##### approvers[​](https://engineering.toggl.com/docs/api/approvals/#approvers)

| Name | Type | Description |
| --- | --- | --- |
| name | string | - |
| user\_id | integer | - |

##### errors[​](https://engineering.toggl.com/docs/api/approvals/#errors)

| Name | Type | Description |
| --- | --- | --- |
| code | string | - |
| message | string | - |

#### 400[​](https://engineering.toggl.com/docs/api/approvals/#400)

Possible error messages:

- Workspace not found
- Invalid user ID
- User not in workspace

#### 402[​](https://engineering.toggl.com/docs/api/approvals/#402)

Approvals are a premium feature

#### 403[​](https://engineering.toggl.com/docs/api/approvals/#403)

User does not have access to this resource

#### 500[​](https://engineering.toggl.com/docs/api/approvals/#500)

Internal Server Error
