Color Populations API
Read-side queries across a population: participants, results, samples, self-reported results.
Read-side queries across a population: participants, results, samples, self-reported results.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/color-populations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: External API V1 Populations API
description: ''
termsOfService: https://www.color.com/tos/
contact:
email: dev@color.com
license:
name: private
version: v1
servers:
- url: https://api.color.com/api/v1/external
security:
- Bearer: []
tags:
- name: Populations
paths:
/populations/eligibility_list:
parameters: []
post:
operationId: populations_eligibility_list
description: Create and/or update eligibility data from file.
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
eligibility_file:
description: The csv file containing eligible recipient data.
type: string
format: binary
population:
description: The name of the population. This indicates the testing population you are uploading the eligibility data for. Separate requests are needed to add/update each population.
type: string
replace:
description: If "true", we remove all existing eligible participants that are not part of the new list. If "false", we append any eligible participants from this list but do not remove existing ones. If the identifier exists already we simply update the external_id/testing_cadence_cohort to the newly provided details. Optional; the default is false if not provided.
type: boolean
required:
- eligibility_file
- population
required: true
responses:
'200':
description: Response body will contain JSON object indicating numbers of rows modified.
content:
application/json:
schema:
$ref: '#/components/schemas/EligibilityListResponse'
'400':
description: Response body will contain list of all error messages.
'403':
description: Authentication token was not provided or accepted.
'500':
description: An error has occurred, please try again.
tags:
- Populations
summary: Populations eligibility list
x-summary-source: derived
/populations/participants:
parameters: []
get:
operationId: populations_participants_list
description: List Participants Endpoint
parameters:
- name: page
in: query
description: A page number within the paginated result set.
required: false
schema:
type: integer
minimum: 1
- name: page_size
in: query
description: 'Optional: represents the maximum number of participants to return. This integer should be between 1 (min) and 500 (max) inclusive. By default, 50 participants will be returned.'
required: false
schema:
type: integer
minimum: 1
maximum: 500
- name: populations
in: query
description: represents your populations - this indicates the testing populations that you are querying participants for. If you do not provide populations, then participants from all of the organization’s populations will be returned.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: latest_sample_activated_at_start
in: query
description: indicates the earliest (inclusive) activation time of the participant’s most recent sample. Defaults to the earliest activation time if not provided. If provided, only users with samples in this time range will be returned.
required: false
schema:
type: string
format: date-time
- name: latest_sample_activated_at_end
in: query
description: indicates the datetime of latest (exclusive) activation time of the participant’s most recent sample. Defaults to the time of the request. If provided, only users with samples in this time range will be returned.
required: false
schema:
type: string
format: date-time
- name: sample_activated_at_start
in: query
description: indicates the earliest (inclusive) activation time of the returned samples. Defaults to the earliest activation time if not provided. If provided, only samples in this time range will be returned.
required: false
schema:
type: string
format: date-time
- name: sample_activated_at_end
in: query
description: indicates the datetime of latest (exclusive) activation time of the returned samples. Defaults to the time of the request. If provided, only samples in this time range will be returned.
required: false
schema:
type: string
format: date-time
- name: participant_ids
in: query
description: array of strings representing participant ids of participants. If an array of participant ids is provided, only participants with participant ids in the array will be returned. Query for a maximum of 50 external ids per request.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: external_ids
in: query
description: array of strings representing external ids of participants. These external ids are provided via eligibility file uploads or via the Eligibility List API. If an array of external ids is provided, only participants with external ids in the array will be returned. Query for a maximum of 50 external ids per request.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: vaccination_statuses
in: query
description: 'array of strings representing vaccination statuses of participants. Must be one of the following: fully_vaccinated, partially_vaccinated, not_vaccinated_but_intend_to, not_vaccinated_and_do_not_intend_to, not_vaccinated, declined_to_answer. If an array of vaccination statuses is provided, only consenting participants with vaccination statuses in the array will be returned.'
required: false
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- fully_vaccinated
- partially_vaccinated
- not_vaccinated_but_intend_to
- not_vaccinated_and_do_not_intend_to
- not_vaccinated
- declined_to_answer
- name: vaccine_status_last_updated_at_start
in: query
description: indicates the earliest (inclusive) last update time for a vaccination status. If provided, only samples where the vaccination status was updated after this time will be returned.
required: false
schema:
type: string
format: date-time
- name: vaccine_status_last_updated_at_end
in: query
description: indicates the latest (inclusive) last update time for a vaccination status. If provided, only samples where the vaccination status was updated before this time will be returned.
required: false
schema:
type: string
format: date-time
- name: ordering
in: query
description: 'Optional: query parameter in which participants can be ordered by. By default, participants are ordered by latest created_at time.'
required: false
schema:
type: string
enum:
- created_at
- -created_at
responses:
'200':
description: ''
content:
application/json:
schema:
required:
- count
- results
type: object
properties:
count:
type: integer
next:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the next page. Will be null if currently on the last page.
previous:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the previous page. Will be null if currently on the first page.
results:
type: array
items:
$ref: '#/components/schemas/ParticipantStatusApi'
'400':
description: Response body will contain list of all error messages.
'403':
description: Authentication token was not provided or accepted.
'500':
description: An error has occurred, please try again.
tags:
- Populations
summary: Populations participants list
x-summary-source: derived
/populations/results:
parameters: []
get:
operationId: populations_results_list
description: List Results Endpoint
parameters:
- name: ordering
in: query
description: 'Optional: query parameter in which results can be ordered by. By default, results are ordered by latest released_at time.'
required: false
schema:
type: string
enum:
- released_at
- -released_at
- name: cursor
in: query
description: The pagination cursor value.
required: false
schema:
type: string
- name: page_size
in: query
description: 'Optional: represents the maximum number of results to return. This integer should be between 1 (min) and 500 (max) inclusive. By default, 50 results will be returned.'
required: false
schema:
type: integer
minimum: 1
maximum: 500
- name: populations
in: query
description: represents your populations - this indicates the testing populations that you are querying results for. If you do not provide populations, then results from all of the organization’s populations will be returned.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: released_at_start
in: query
description: indicates the earliest (inclusive) release date of results. Earliest accepted datetime is 2 weeks before the time of the request. Defaults to 2 weeks before the time of the request if not provided.
required: false
schema:
type: string
format: date-time
- name: released_at_end
in: query
description: indicates the datetime of the most recent (exclusive) release date. Defaults to the time of the request.
required: false
schema:
type: string
format: date-time
- name: kit_barcodes
in: query
description: represents sample barcodes. If an array of barcodes is provided, only results with barcodes in the array will be returned. Query for a maximum of 50 barcodes per request.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
pattern: ^D-\d{10}$
- name: test_significance
in: query
description: string indicating the desired test significance of the results. If the query parameter is included, but does not contain one of the accepted values, we will return 400 Bad request.
required: false
schema:
type: string
enum:
- detected
- not_detected
- inconclusive
- failed
- name: organizations
in: query
description: this can only be used with customer accounts. This indicates the organizations that you are querying results for. If you do not provide organizations, then results from all organizations will be returned.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: external_ids
in: query
description: array of strings representing external ids of participants. These external ids are provided via eligibility file uploads or via the Eligibility List API. If an array of external ids is provided, only results for participants matching the external ids in the array will be returned. Query for a maximum of 50 external ids per request.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
required:
- results
type: object
properties:
next:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the next page. Will be null if currently on the last page.
previous:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the previous page. Will be null if currently on the first page.
results:
type: array
items:
$ref: '#/components/schemas/ResultApi'
'400':
description: Response body will contain list of all error messages.
'403':
description: Authentication token was not provided or accepted.
'500':
description: An error has occurred, please try again.
tags:
- Populations
summary: Populations results list
x-summary-source: derived
/populations/samples:
parameters: []
get:
operationId: populations_samples_list
description: List Samples Endpoint
parameters:
- name: ordering
in: query
description: 'Optional: query parameter in which samples can be ordered by. By default, samples are ordered by latest activated_at time.'
required: false
schema:
type: string
enum:
- activated_at
- -activated_at
- name: cursor
in: query
description: The pagination cursor value.
required: false
schema:
type: string
- name: page_size
in: query
description: 'Optional: represents the maximum number of samples to return. This integer should be between 1 (min) and 500 (max) inclusive. By default, 50 samples will be returned.'
required: false
schema:
type: integer
minimum: 1
maximum: 500
- name: populations
in: query
description: represents your populations - this indicates the testing populations that you are querying samples for. If you do not provide populations, then samples from all of the organization’s populations will be returned.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: activated_at_start
in: query
description: indicates the earliest (inclusive) activation time of the returned samples. Defaults to the the activation time two weeks ago if not provided.
required: false
schema:
type: string
format: date-time
- name: activated_at_end
in: query
description: indicates the datetime of latest (exclusive) activation time of the returned samples. Defaults to the time of the request.
required: false
schema:
type: string
format: date-time
- name: kit_barcodes
in: query
description: represents sample barcodes. If an array of barcodes is provided, only samples with barcodes in the array will be returned. Query for a maximum of 50 barcodes per request.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
pattern: ^D-\d{10}$
responses:
'200':
description: ''
content:
application/json:
schema:
required:
- results
type: object
properties:
next:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the next page. Will be null if currently on the last page.
previous:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the previous page. Will be null if currently on the first page.
results:
type: array
items:
$ref: '#/components/schemas/SampleApi'
'400':
description: Response body will contain list of all error messages.
'403':
description: Authentication token was not provided or accepted.
'500':
description: An error has occurred, please try again.
tags:
- Populations
summary: Populations samples list
x-summary-source: derived
/populations/samples/{kit_barcode}:
parameters:
- name: kit_barcode
in: path
required: true
schema:
type: string
get:
operationId: populations_samples_read
description: Retrieve Samples Endpoint
parameters:
- name: kit_barcode
in: path
description: Barcode included in the test collection kit
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/SampleApi'
'400':
description: Response body will contain list of all error messages.
'403':
description: Authentication token was not provided or accepted.
'404':
description: Result could not be retrieved. Please check your query parameters.
'500':
description: An error has occurred, please try again.
tags:
- Populations
summary: Populations samples read
x-summary-source: derived
/populations/self_reported_results:
parameters: []
get:
operationId: populations_self_reported_results_list
description: List Self-Reported Results Endpoint
parameters:
- name: ordering
in: query
description: 'Optional: query parameter in which self-reported results can be ordered by. By default, self-reported results are ordered by latest reported_at time.'
required: false
schema:
type: string
enum:
- reported_at
- -reported_at
- name: reported_at_start
in: query
description: Indicates the earliest (start) or latest (end) reported time of self-reported results to be returned
required: false
schema:
type: string
- name: reported_at_end
in: query
description: Indicates the earliest (start) or latest (end) reported time of self-reported results to be returned
required: false
schema:
type: string
- name: test_date_start
in: query
description: Indicates the earliest (start) or latest (end) test date of self-reported results to be returned
required: false
schema:
type: string
- name: test_date_end
in: query
description: Indicates the earliest (start) or latest (end) test date of self-reported results to be returned
required: false
schema:
type: string
- name: populations
in: query
description: Represents your populations - this indicates the testing populations that you are querying self-reported results for. If you do not provide populations, then self-reported results from all of the organization’s populations will be returned.
required: false
schema:
type: string
- name: participant_ids
in: query
description: Array of strings representing participant ids of participants. If an array of participant ids is provided, only self-reported results with participant ids in the array will be returned. Query for a maximum of 50 external ids per request.
required: false
schema:
type: string
- name: test_significance
in: query
description: String indicating the desired test significance of the self-reported results. If the query parameter is included, but does not contain one of the accepted values, we will return 400 Bad request.
required: false
schema:
type: string
- name: test_type
in: query
description: String indicating the desired test type of the self-reported results. If the query parameter is included, but does not contain one of the accepted values, we will return 400 Bad request.
required: false
schema:
type: string
- name: cursor
in: query
description: The pagination cursor value.
required: false
schema:
type: string
- name: page_size
in: query
description: 'Optional: represents the maximum number of self-reported results to return. This integer should be between 1 (min) and 500 (max) inclusive. By default, 50 self-reported results will be returned.'
required: false
schema:
type: integer
minimum: 1
maximum: 500
responses:
'200':
description: ''
content:
application/json:
schema:
required:
- results
type: object
properties:
next:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the next page. Will be null if currently on the last page.
previous:
type:
- string
- 'null'
format: uri
description: URL prepopulated with query parameters to get the previous page. Will be null if currently on the first page.
results:
type: array
items:
$ref: '#/components/schemas/SelfReportedResultApi'
'400':
description: Response body will contain list of all error messages.
'403':
description: Authentication token was not provided or accepted.
'500':
description: An error has occurred, please try again.
tags:
- Populations
summary: Populations self reported results list
x-summary-source: derived
components:
schemas:
SampleParticipantStatusApi:
required:
- kit_barcode
- activated_at
- collected_at
type: object
properties:
kit_barcode:
title: Kit barcode
description: Barcode included in the test collection kit.
type: string
minLength: 1
activated_at:
title: Activated at
description: When the sample was activated, null otherwise.
type: string
format: date-time
received_at_lab:
title: Received at lab
description: When the sample was received at the lab.
type: string
format: date-time
readOnly: true
collected_at:
title: Collected at
description: When the sample was collected.
type: string
format: date-time
processing_lab:
title: Processing lab
description: name of processing lab if available, null otherwise.
type: string
readOnly: true
is_canceled:
title: Is canceled
description: indicates whether to the kit order was cancelled or not
type: string
readOnly: true
Address:
type: object
properties:
line1:
title: Address line 1
type: string
readOnly: true
minLength: 1
line2:
title: Address line 2
type: string
readOnly: true
minLength: 1
city:
title: City
type: string
readOnly: true
minLength: 1
state:
title: State/Province
type: string
readOnly: true
minLength: 1
country:
title: Country
type: string
enum:
- AF
- AX
- AL
- DZ
- AS
- AD
- AO
- AI
- AQ
- AG
- AR
- AM
- AW
- AU
- AT
- AZ
- BS
- BH
- BD
- BB
- BY
- BE
- BZ
- BJ
- BM
- BT
- BO
- BQ
- BA
- BW
- BV
- BR
- IO
- BN
- BG
- BF
- BI
- CV
- KH
- CM
- CA
- KY
- CF
- TD
- CL
- CN
- CX
- CC
- CO
- KM
- CG
- CD
- CK
- CR
- CI
- HR
- CU
- CW
- CY
- CZ
- DK
- DJ
- DM
- DO
- EC
- EG
- SV
- GQ
- ER
- EE
- SZ
- ET
- FK
- FO
- FJ
- FI
- FR
- GF
- PF
- TF
- GA
- GM
- GE
- DE
- GH
- GI
- GR
- GL
- GD
- GP
- GU
- GT
- GG
- GN
- GW
- GY
- HT
- HM
- VA
- HN
- HK
- HU
- IS
- IN
- ID
- IR
- IQ
- IE
- IM
- IL
- IT
- JM
- JP
- JE
- JO
- KZ
- KE
- KI
- KW
- KG
- LA
- LV
- LB
- LS
- LR
- LY
- LI
- LT
- LU
- MO
- MG
- MW
- MY
- MV
- ML
- MT
- MH
- MQ
- MR
- MU
- YT
- MX
- FM
- MD
- MC
- MN
- ME
- MS
- MA
- MZ
- MM
- NA
- NR
- NP
- NL
- NC
- NZ
- NI
- NE
- NG
- NU
- NF
- KP
- MK
- MP
- 'NO'
- OM
- PK
- PW
- PS
- PA
- PG
- PY
- PE
- PH
- PN
- PL
- PT
- PR
- QA
- RE
- RO
- RU
- RW
- BL
- SH
- KN
- LC
- MF
- PM
- VC
- WS
- SM
- ST
- SA
- SN
- RS
- SC
- SL
- SG
- SX
- SK
- SI
- SB
- SO
- ZA
- GS
- KR
- SS
- ES
- LK
- SD
- SR
- SJ
- SE
- CH
- SY
- TW
- TJ
- TZ
- TH
- TL
- TG
- TK
- TO
- TT
- TN
- TR
- TM
- TC
- TV
- UG
- UA
- AE
- GB
- UM
- US
- UY
- UZ
- VU
- VE
- VN
- VG
- VI
- WF
- EH
- YE
- ZM
- ZW
readOnly: true
postal_code:
title: Postal Code
type: string
readOnly: true
minLength: 1
SampleApi:
required:
- kit_barcode
- activated_at
- received_at_lab
- collected_at
- processing_lab
- participant_id
- resulted_at
- cancelled_at
type: object
properties:
kit_barcode:
title: Kit barcode
description: Barcode included in the test collection kit.
type: string
minLength: 1
activated_at:
title: Activated at
description: When the sample was activated, null otherwise.
type: string
format: date-time
received_at_lab:
title: Received at lab
description: When the sample was received at the lab.
type: string
format: date-time
collected_at:
title: Collected at
description: When the sample was collected.
type: string
format: date-time
processing_lab:
title: Processing lab
description: name of processing lab if available, null otherwise.
type: string
participant_id:
title: Participant id
description: The public id of the participant, can be used to query participant status endpoint.
type:
- string
- 'null'
minLength: 1
resulted_at:
title: Resulted at
description: When the sample was resulted, null otherwise.
type: string
format: date-time
cancelled_at:
title: Cancelled at
description: When the sample was cancelled, null otherwise.
type: string
format: date-time
ResultApi:
required:
- significance
- is_revision
- released_at
- opened_at
- population
- patient
- sample
- rejection_code
- cycle_thresholds
- organization
- test_type
type: object
properties:
significance:
title: Significance
description: detected,not_detected,inconclusive,failed
type: string
is_revision:
title: Is revision
description: Indicates whether or not this report is a modification of a previously released report.
type: boolean
released_at:
title: Released at
description: Time the result was released to the patient
type: string
format: date-time
opened_at:
title: Opened at
description: Time the result was viewed by the patient
type: string
format: date-time
population:
title: Population
description: The population this participant belongs to in the organization.
type: string
minLength: 1
patient:
$ref: '#/components/schemas/PatientProfileResultApi'
sample:
$ref: '#/components/schemas/SampleResultApi'
rejection_code:
title: Rejection code
description: Rejection code provided by the lab
type: string
cycle_thresholds:
description: A list of cycle threshold values
type: array
items:
$ref: '#/components/schemas/CycleThresholdValue'
organi
# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/color/refs/heads/main/openapi/color-populations-api-openapi.yml