---
title: "Get All Company Codes"
method: GET
path: "/v2/companies/{companyId}/codes/{codeResource}"
tags: ["Company Codes"]
---

# Get All Company Codes

`GET /v2/companies/{companyId}/codes/{codeResource}`

## Request

- Base URL: `https://dc1demogw.paylocity.com/api`
- URL: `https://dc1demogw.paylocity.com/api/v2/companies/{companyId}/codes/{codeResource}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.paylocity.com/IdentityServer/connect/token` scopes: `WebLinkAPI`

Get All Company Codes for the selected company and resource.

## Path parameters

- `companyId` string, required
- `codeResource` string, required

## Response `200`

Successfully retrieved

- CompanyCodes[]
  - `code` string: Code.<br /> Max length: 40
  - `description` string: Description. <br /> Max length: 150

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Invalid Code Resource
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/paylocity/apis/weblink-api.md) - [All operations](https://skmtc.dev/paylocity/apis/weblink-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paylocity/apis/weblink-api/revisions/8152ed40b412?raw)
