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.
SupportContact salesStart free trial
  • Getting started
    • Overview
    • Authentication
    • Querying tutorial
    • OData Integrations
    • Work Breakdown Structure
    • Software Development Kits
    • API Patch Notes
    • FAQ
    • Terms of use
  • API Reference
      • GETRetrieves a list of all countries.
      • GETRetrieves a list of states for a given country ISO code.
LogoLogo
SupportContact salesStart free trial
API ReferenceCountry

Retrieves a list of states for a given country ISO code.

GET
https://api.projectmanager.com/api/data/countries/:isoCode/states
GET
/api/data/countries/:isoCode/states
$curl https://api.projectmanager.com/api/data/countries/isoCode/states \
> -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "error": {
3 "technicalError": "string",
4 "additionalErrors": [
5 "string"
6 ],
7 "validationErrors": {},
8 "message": "string"
9 },
10 "success": true,
11 "hasError": true,
12 "statusCode": "Continue",
13 "data": [
14 {
15 "id": 1,
16 "stateCode": "string",
17 "name": "string"
18 }
19 ]
20}
This method returns a list of all states for the specified country. Each state includes its unique identifier, state code, and name.
Was this page helpful?
Previous

Create Task Comment

Next
Built with

Authentication

AuthorizationBearer

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

Path parameters

isoCodestringRequired
The ISO code of the country.

Headers

x-integration-namestringOptional
The name of the calling system passed along as a header parameter

Response

Success
errorobject or null
If the API call failed, this will contain information about the error that occurred.
successbooleanRead-only

True if the API call succeeded; false otherwise.

hasErrorbooleanRead-only
True if the API call failed.
statusCodeenum
The HTTP code of the response.
datalist of objects
If the API call succeeded, this will contain the results.