openapi: 3.2.0 info: version: '2.0' title: Contact Labels Endpoints API description: The Contact API allows you to manage contacts associated with your VoPay account. contact: name: API Support email: help@vopay.com servers: - url: https://earthnode-dev.vopay.com/api/v2 tags: - name: Contact Labels Endpoints paths: /contacts/label: get: description: This endpoint returns all the created Labels for the given Contact. summary: contacts/label tags: - Contact Labels Endpoints operationId: ContactLabelGet deprecated: false parameters: - name: AccountID in: query required: true description: Your account ID schema: type: string - name: Key in: query required: true description: API key for the account schema: type: string - name: Signature in: query required: true description: Hashed signature for the request schema: type: string - name: ContactID in: query required: false description: Contact ID of customer who's labels you want to retrieve schema: type: string responses: '200': description: '' headers: {} content: application/json: schema: type: object properties: Success: type: boolean description: True if the request was successful, false if it failed example: 'true' ErrorMessage: type: string description: Contains a description of the error if the request failed example: '' Labels: type: object description: Collection of Labels properties: '0': type: object properties: Label: type: string description: Label Name example: Contact1 /contacts/label/add: post: description: This endpoint allows you to create a Label. summary: contacts/label/add tags: - Contact Labels Endpoints operationId: ContactLabelAddPost deprecated: false requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: AccountID: description: Your account ID type: string Key: description: API key for the account type: string Signature: description: Hashed signature for the request type: string ContactID: description: Contact ID of customer who's account we want to add the label to type: string Label: description: New Label type: string required: - AccountID - Key - Signature - ContactID - Label required: true responses: '200': description: '' headers: {} content: application/json: schema: type: object properties: Success: type: boolean description: True if the request was successful, false if it failed example: 'true' ErrorMessage: type: string description: Contains a description of the error if the request failed example: '' Label: type: string description: The newly added Label example: Contact1 /contacts/label/delete: post: description: This endpoint allows you to delete a Label. summary: contacts/label/delete tags: - Contact Labels Endpoints operationId: ContactLabelDeletePost deprecated: false requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: AccountID: description: Your account ID type: string Key: description: API key for the account type: string Signature: description: Hashed signature for the request type: string ContactID: description: Contact ID of customer who's account we want to delete the label from type: string Label: description: The label you want to delete type: string required: - AccountID - Key - Signature - ContactID - Label required: true responses: '200': description: '' headers: {} content: application/json: schema: type: object properties: Success: type: boolean description: True if the request was successful, false if it failed example: 'true' ErrorMessage: type: string description: Contains a description of the error if the request failed example: ''