openapi: '3.0.2'
info:
title: Signalmash API Platform
version: '1.0'
description: "Every API request authenticates the user, which you may do through the customer's site by creating tokens. Customers can now use the same or different tokens for each activity they make, thanks to a single management location.Log in to the portal, then go to the API Menu and select \"Tokens\" from the submenu.
To make a token, go to the right upper corner and click \"Add Token.\"
There will be a pop-up window. Choose the function (s) to link to the token."
servers:
- url: http://localhost:4250
components:
securitySchemes:
Bearer:
type: apiKey
name: Authorization
in: header
paths:
/apilogin:
post:
description:
The Login API is used to verify a user's identity.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
Username:
type: string
description: Enter Your Token Name
Password:
type: string
description: Enter Your Api Key
required:
- Username
- Password
responses:
'200':
description: Login Successfully
/getstate:
get:
description: To find the state we can use this API
security:
- Bearer: []
responses:
'200':
description: State Find Successfully.
/getratecenter:
get:
description: To find the rate center we can use this API
parameters:
- name: State
in: query
description: The Rate Center's postal abbreviation is state or province.Example:NJ
required: true
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: Rate Center Find Successfully.
/getnpa:
get:
description: To find the NPA we can use this API
parameters:
- name: State
in: query
description: The Rate Center's postal abbreviation is state or province.Example:NJ
required: true
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: NPA Find Successfully.
/getnxx:
get:
description: To find the NXX we can use this API
parameters:
- name: NPA
in: query
description: Generally referred to as the Area Code, the first three digits of a ten-digit North American Numbering Plan (NANP) numberExample:201
required: true
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: NXX Find Successfully.
/searchtollfree:
get:
description: Use this to look for toll-free numbers. Additional API services can purchase and customize these numbers. By setting the searchType to toll-free, you can find accessible toll-free numbers.
parameters:
- name: TF_PREFIX
in: query
description: Enter the 3 digit number that is tollfree prefixExample:833
required: true
schema:
type: string
- name: Qty
in: query
description: Enter an integer numberExample:1
required: true
schema:
type: integer
security:
- Bearer: []
responses:
'200':
description: Tollfree Number Find Successfully.
/searchbyrate:
get:
description: Lookup a single or a group of contact information. By putting searchType to domestic and searchBy to rate center, you can search by rate center
parameters:
- name: RateCenter
in: query
description: The full name of the Rate Center, which is a geographical Rate Exchange Area.Example:JERSEYCITY
required: true
schema:
type: string
- name: State
in: query
description: The Rate Center's postal abbreviation is state or province.Example:NJ
required: true
schema:
type: string
- name: Qty
in: query
description: Enter an integer numberExample:1
required: true
schema:
type: integer
- name: CampaignId
in: query
description: Enter a text characterExample:1
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: DID Find Successfully
/searchbynpa:
get:
description: Lookup a single or a group of phone numbers. You can search by the first 'n' numbers and select domestic as the searchType and npanxx as the searchBy
parameters:
- name: NPA
in: query
description: Generally referred to as the Area Code, the first three digits of a ten-digit North American Numbering Plan (NANP) numberExample:201
required: true
schema:
type: string
- name: NXX
in: query
description: The first three digits after the Area Code of a ten-digit NANP number, commonly referred to as the telephone exchange or prefixExample:200
schema:
type: string
- name: Qty
in: query
description: Enter an integer numberExample:1
required: true
schema:
type: integer
- name: CampaignId
in: query
description: Enter a text characterExample:1
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: DID Find Successfully.
# /addcart:
# post:
# description: In this, you are add DID in a cart.
# security:
# - Bearer: []
# requestBody:
# required: true
# content:
# application/x-www-form-urlencoded:
# schema:
# type: object
# properties:
# DID:
# type: array
# description: "It is a ten digits phone numberExample:8463216998"
# required:
# - DID
# responses:
# '201':
# description: DID Number Purchase Successfully
/listconnection:
get:
description: Returns a basic id.
security:
- Bearer: []
responses:
'200':
description: Get id Succesfully.
/getnumberdetails:
get:
description: In this, you are finding a network operators
parameters:
- name: DID
in: query
description: It is a ten digits phone number.Example:8632146398
required: true
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: Network Operators Find Successfully.
/buy:
post:
description: In this, you are purchasing a DID.
security:
- Bearer: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
DID:
type: string
description: "It is a ten digits phone numberExample:8463216998"
Connection:
type: string
InboundSMS:
type: string
OutboundSMS:
type: string
InboundVoice:
type: string
OutboundVoice:
type: string
CampaignId:
type: string
required:
- DID
responses:
'201':
description: DID Number Purchase Successfully
/enablesms:
post:
description: In this,You have Enabled Sms.
security:
- Bearer: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
DID:
type: string
description: "It is a ten digits phone numberExample:8463216998"
CampaignId:
type: string
required:
- DID
- CampaignId
responses:
'201':
description: Enable SMS Successfully
/disablesms:
delete:
description: To find the rate center we can use this API
parameters:
- name: DID
in: query
description: "It is a ten digits phone numberExample:8463216998"
required: true
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: Disable Offnet Successfully.
/enablesmsstatus:
get:
description: To find the rate center we can use this API
parameters:
- name: DID
in: query
description: "It is a ten digits phone numberExample:8463216998"
required: true
schema:
type: string
security:
- Bearer: []
responses:
'200':
description: Offnet status Find Successfully.
/enablesmsnotifications:
get:
description: To find the notifications using this API
security:
- Bearer: []
responses:
'200':
description: Offnet status Find Successfully.
/disconnect:
post:
description: "To remove an array of DIDs associated with the account, use this operation"
security:
- Bearer: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
DID: #