openapi: 3.2.0 info: version: 1.0.0 description: Identify your most influential customers and activate them to drive more conversions on social. title: MAVRCK.IO Subscribers API servers: - url: http://app.splashscore.com/v1 - url: https://app.splashscore.com/v1 security: - apiKey: [] tags: - name: Subscribers paths: /v1/subscribers: get: operationId: getSubscribers responses: '200': description: OK content: application/json: schema: items: $ref: '#/components/schemas/Subscriber' type: array '400': description: Missing Parameter content: application/json: schema: $ref: '#/components/schemas/ValidateErrorJSON' '403': description: Access forbidden content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' '404': description: The resource does not exist content: application/json: schema: $ref: '#/components/schemas/NotFoundError' '500': description: Server Error content: application/json: schema: $ref: '#/components/schemas/ServerError' tags: - Subscribers post: operationId: createSubscriber responses: '201': description: OK content: application/json: schema: $ref: '#/components/schemas/Subscriber' '400': description: Missing Parameter content: application/json: schema: $ref: '#/components/schemas/ValidateErrorJSON' '403': description: Access forbidden content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' '404': description: The resource does not exist content: application/json: schema: $ref: '#/components/schemas/NotFoundError' '500': description: Server Error content: application/json: schema: $ref: '#/components/schemas/ServerError' tags: - Subscribers requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateSubscriberBody' required: true /v1/subscribers/{id}: put: operationId: updateSubscriber responses: '200': description: OK '400': description: Missing Parameter content: application/json: schema: $ref: '#/components/schemas/ValidateErrorJSON' '403': description: Access forbidden content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' '404': description: The resource does not exist content: application/json: schema: $ref: '#/components/schemas/NotFoundError' '500': description: Server Error content: application/json: schema: $ref: '#/components/schemas/ServerError' tags: - Subscribers parameters: - in: path name: id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateSubscriberBody' required: true /v1/subscribers/{id}/ping: get: operationId: pingSubscriber responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SubscriberPingResponse' '400': description: Missing Parameter content: application/json: schema: $ref: '#/components/schemas/ValidateErrorJSON' '403': description: Access forbidden content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' '404': description: The resource does not exist content: application/json: schema: $ref: '#/components/schemas/NotFoundError' '500': description: Server Error content: application/json: schema: $ref: '#/components/schemas/ServerError' tags: - Subscribers parameters: - in: path name: id required: true schema: type: string components: schemas: ForbiddenError: properties: message: type: string enum: - Access Forbidden details: properties: {} additionalProperties: additionalProperties: true type: object required: - message - details type: object additionalProperties: false CreateSubscriberBody: properties: url: type: string required: - url type: object additionalProperties: false SubscriberPingResponse: properties: testResult: type: string enum: - SUCCESS - SUBSCRIBER_NOT_FOUND - SUBSCRIBER_DISABLED - FAILURE required: - testResult type: object additionalProperties: false Subscriber: properties: id: type: string instanceKeyname: type: string isEnabled: type: boolean token: type: string url: type: string required: - id - instanceKeyname - isEnabled - token - url type: object additionalProperties: false NotFoundError: properties: message: type: string enum: - Resource Not Found details: properties: {} additionalProperties: additionalProperties: true type: object required: - message - details type: object additionalProperties: false UpdateSubscriberBody: properties: isEnabled: type: boolean required: - isEnabled type: object additionalProperties: false ServerError: properties: message: type: string enum: - Server Error details: properties: {} additionalProperties: additionalProperties: true type: object required: - message - details type: object additionalProperties: false ValidateErrorJSON: properties: message: type: string enum: - Validation failed details: properties: {} additionalProperties: additionalProperties: true type: object required: - message - details type: object additionalProperties: false securitySchemes: apiKey: type: apiKey name: api-key in: header