openapi: 3.2.0 info: title: Magnite State Lists API version: '1.0' description: 'Operations tagged State Lists across 2 of this provider''s published API definitions: magnite-springserve-v0-openapi.yml, magnite-springserve-v1-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. security: - api_key: [] - bearer_token: [] tags: - name: State Lists paths: /api/v0/state_lists: get: summary: Index parameters: - $ref: ref/params.yaml#/components/parameters/pageParam - $ref: ref/params.yaml#/components/parameters/perParam - $ref: ref/params.yaml#/components/parameters/idsParam responses: '200': description: '' content: application/json: schema: $ref: ref/schemas.yaml#/components/schemas/ListResponse tags: - State Lists operationId: state_lists_get post: summary: Create requestBody: content: application/json: schema: type: object examples: state_list_create_simple: $ref: '#/components/examples/state_list_create_simple' state_list_create_full: $ref: '#/components/examples/state_list_create_full' required: true responses: '201': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_post servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. /api/v0/state_lists/{id}: parameters: - name: id in: path required: true schema: type: string get: summary: Show responses: '200': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_id_get put: summary: Update requestBody: content: application/json: schema: type: object examples: state_list_update_simple: $ref: '#/components/examples/state_list_update_simple' state_list_update_full: $ref: '#/components/examples/state_list_update_full' responses: '200': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_id_put delete: summary: Destroy responses: '204': description: No content tags: - State Lists operationId: state_lists_id_delete servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. /api/v1/state_lists: get: summary: Index parameters: - $ref: ref/params.yaml#/components/parameters/pageParam - $ref: ref/params.yaml#/components/parameters/perParam - $ref: ref/params.yaml#/components/parameters/sortParam - $ref: ref/params.yaml#/components/parameters/searchParam - $ref: ref/params.yaml#/components/parameters/filterParams - $ref: ref/params.yaml#/components/parameters/includeParam - $ref: ref/params.yaml#/components/parameters/idsParam responses: '200': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_get post: summary: Create requestBody: content: application/json: schema: allOf: - $ref: '#/components/schemas/StateListCreateRequest' - type: object properties: state_codes: type: array items: type: string description: The state codes to include in the state list. examples: - - US-CA - US-NY examples: state_list_create_simple: $ref: '#/components/examples/state_list_create_simple' state_list_create_full: $ref: '#/components/examples/state_list_create_full' multipart/form-data: schema: allOf: - $ref: '#/components/schemas/StateListCreateRequest' - type: object properties: csv_file: type: string format: binary required: - csv_file responses: '201': description: Successfully created State List content: application/json: schema: $ref: '#/components/schemas/StateListResponse' '422': description: Unprocessable Content content: application/json: schema: $ref: '#/components/schemas/StateListErrorResponse' tags: - State Lists operationId: state_lists_post servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. /api/v1/state_lists/{id}: get: summary: Show parameters: - name: id in: path required: true schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_id_get patch: summary: Update parameters: - name: id in: path required: true schema: type: number requestBody: content: application/json: schema: allOf: - $ref: '#/components/schemas/StateListUpdateRequest' - type: object properties: state_codes: type: array items: type: string description: The state codes to include in the state list. Can only be used when list_action parameter is provided. examples: - - CA-ON - GB-ENG examples: state_list_update_simple: $ref: '#/components/examples/state_list_update_simple' state_list_update_full: $ref: '#/components/examples/state_list_update_full_2' multipart/form-data: schema: allOf: - $ref: '#/components/schemas/StateListUpdateRequest' - type: object properties: csv_file: type: string format: binary x-accept: text/csv description: The CSV file containing state codes to include in the state list. Can only be used when list_action parameter is provided. responses: '200': description: Successfully updated State List content: application/json: schema: $ref: '#/components/schemas/StateListResponse' '422': description: Unprocessable Content content: application/json: schema: $ref: '#/components/schemas/StateListErrorResponse' tags: - State Lists operationId: state_lists_id_patch delete: summary: Delete parameters: - name: id in: path required: true schema: type: string responses: '204': description: No content tags: - State Lists operationId: state_lists_id_delete servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. /api/v1/state_lists/permissions: get: summary: Collection Permissions responses: '200': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_permissions_get servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. /api/v1/state_lists/{id}/permissions: get: summary: Permissions Member parameters: - name: id in: path required: true schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - State Lists operationId: state_lists_id_permissions_get servers: - url: https://console.springserve.com description: Production API endpoint named by the SpringServe developer documentation (API - Getting Started). - url: https://api.springserve.com description: Same application; also serves the Swagger UI at /api-docs. Verified 2026-08-13. components: examples: state_list_create_simple: summary: Simple value: name: State List Name state_codes: - US-CA - US-NY state_list_update_full: summary: Full value: name: State List Name description: State List Description active: true state_codes: - CA-ON - GB-ENG state_list_update_simple: summary: Simple value: name: State List Name state_list_create_full: summary: Full value: name: State List Name description: State List Description active: true state_codes: - US-CA - US-NY state_list_update_full_2: summary: Full value: name: State List Name description: State List Description active: true state_codes: - CA-ON - GB-ENG list_action: append schemas: StateListUpdateRequest: type: object properties: name: type: string description: The updated name of the state list. examples: - Updated State List Name description: type: string description: The updated description of the state list. examples: - Updated State List Description active: type: boolean description: Whether the state list is active. examples: - true list_action: type: string enum: - append - replace - remove description: The action to perform on the state codes in the state list. Required if state_codes or csv_file is provided. examples: - append StateListResponse: type: object properties: id: type: integer examples: - 1 account_id: type: integer name: type: string description: type: string active: type: boolean created_at: type: string format: date-time updated_at: type: string format: date-time state_codes: type: array items: type: string StateListCreateRequest: type: object properties: name: type: string description: The name of the state list. examples: - State List Name description: type: string description: The description of the state list. examples: - This is my state list. active: type: boolean description: Whether the state list is active. examples: - true required: - name StateListErrorResponse: type: object properties: status: type: integer error: type: string examples: - error: State codes can't be blank errors: state_codes: - can't be blank securitySchemes: api_key: type: apiKey in: header name: Authorization description: SpringServe authorization token based authentication. bearer_token: type: http scheme: bearer bearerFormat: JWT description: SpringServe authorization bearer token based authentication. This key is included in the response from the /api/v0/auth and /api/v1/auth endpoints. This key will be automatically set if you run the example for /api/v0/auth or /api/v1/auth x-refined-from: - magnite-springserve-v0-openapi.yml - magnite-springserve-v1-openapi.yml