Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
version: '2.0'
title: Open311 GeoReport Services API
description: Open311 allows you to get/post civic information of cities via a unified interface. The GeoReport part allows you to submit and view issues at the public local space
termsOfService: (depends on server instance for example NYC http://dev.cityofchicago.org/docs/api/tos)
contact:
name: Open311 community
url: http://wiki.open311.org/GeoReport_v2/
email: discuss@lists.open311.org
license:
name: CC BY 3.0
url: http://creativecommons.org/licenses/by/3.0/
tags:
- name: Services
paths:
/services/{service_code}.{response_format}:
get:
summary: (extended) definition of a service type
description: Define attributes associated with a service code. These attributes can be unique to the city/jurisdiction.
parameters:
- $ref: '#/components/parameters/jurisdiction_id'
- $ref: '#/components/parameters/response_format'
- name: service_code
in: path
required: true
schema:
type: string
format: uid
responses:
200:
description: returns ServiceDefinition for the Service
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceDefinition'
text/xml:
schema:
$ref: '#/components/schemas/ServiceDefinition'
400:
description: service_code or jurisdiction_id provided were not found (specify in erraddor response)
404:
description: service_code or jurisdiction_id provided were not found (specify in error response)
tags:
- Services
operationId: getServicesByServiceCode}{responseFormat
x-operation-id-source: derived
components:
schemas:
AttributeValue:
description: Possible value for ServiceAttribute that defines lists
required:
- key
- name
properties:
key:
type: string
format: uid
description: Unique identifier associated with an option for singlevaluelist or multivaluelist (analogous to the value attribute in an html option tag).
name:
type: string
description: Human readable title of an option for singlevaluelist or multivaluelist (analogous to the innerhtml text node of an html option tag).
ServiceAttribute:
description: A single attribute extension for a service
required:
- variable
- code
- datatype
- required
properties:
variable:
type: boolean
description: If only used to present information to the user within the description field or if that user input is needed
code:
type: string
format: uid
description: Unique identifier for the attribute
datatype:
type: string
enum:
- string
- number
- datetime
- text
- singlevaluelist
- multivaluelist
description: Type of field used for user input. According widgets will be picked for user inputs
required:
type: boolean
description: If attributes value required to submit service request
datatype_description:
type: string
description: Description of the datatype which helps the user provide their input
order:
type: integer
format: uint
description: Sort order that the attributes will be presented to the user. 1 is shown first in the list.
description:
type: string
description: description of the attribute field with instructions for the user to find and identify the requested information
values:
type: array
items:
$ref: '#/components/schemas/AttributeValue'
ServiceDefinition:
description: Attributes associated with a service code. These attributes can be unique to the city/jurisdiction.
required:
- service_code
- attributes
properties:
service_code:
type: string
format: uid
description: unique identifier for the service request type
attributes:
type: array
items:
$ref: '#/components/schemas/ServiceAttribute'
parameters:
jurisdiction_id:
name: jurisdiction_id
in: query
description: <?>
required: true
schema:
type: string
format: uid
response_format:
name: response_format
in: path
required: true
schema:
type: string
format: uid
securitySchemes:
api_key:
type: apiKey
name: api_key
in: query