For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportDeveloper ForumLogin
LogoLogo
  • Overview
    • Introduction
    • Getting Started
    • Integration Example (PSA)
    • Authentication
    • Error Handling
    • Pagination
    • Filtering
    • Ordering
    • Rate Limits
    • Permissions
    • Webhooks
    • MCP Server
    • Versioning
    • Changelog
    • Support
  • API v1 Reference
    • Projects Overview
    • Tasks Overview
    • Time Tracking Overview
    • Documents Overview
    • Search Overview
    • Companies Overview
    • Users Overview
      • GETGets all absence regions.
      • POSTCreates a new absence region.
      • GETList of supported countries for absence regions.
      • GETList of locations for a country.
      • POSTAssign/remove current user to/from an absence region.
      • PUTAssign/remove current user to/from an absence region.
      • POSTAssigns or unassigns users to/from an absence region.
      • PUTAssigns or unassigns users to/from an absence region.
      • GETGet an absence region by id.
      • PUTUpdates an absence region.
      • DELDeletes an absence region.
    • Files & Images Overview
    • Custom Fields Overview
    • Workload & Planning Overview
    • Project Templates Overview
    • Workflows Overview
    • Login & Access Overview
    • API Management Overview
SupportDeveloper ForumLogin
API v1 ReferenceAbsence Regions

List of locations for a country.

GET
https://api.awork.com/api/v1/absenceregions/countries/:countryCode/locations
GET
/api/v1/absenceregions/countries/:countryCode/locations
$curl https://api.awork.com/api/v1/absenceregions/countries/countryCode/locations \
> -H "Authorization: Bearer <token>"
1[
2 {
3 "code": "DE-HH",
4 "name": "Hamburg"
5 }
6]
Returns a list of all the locations of a country, expressed as ISO 3166-2 codes. It will include the regions and subregions (sublocations) of the country if available. <Check title="Required Permissions" icon="key">Any authenticated user.</Check>
Was this page helpful?
Previous

Assign/remove current user to/from an absence region.

Next
Built with

Returns a list of all the locations of a country, expressed as ISO 3166-2 codes. It will include the regions and subregions (sublocations) of the country if available.

Required Permissions
Any authenticated user.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

countryCodestringRequired
The country code.

Response

OK
codestring or null

The ISO-3166-2 location code.

namestring or null
The name of the location.

Errors

404
Not Found Error