openapi: 3.0.3
info:
title: 'FullSMS System'
description: "API server for the Fullsms service
Fullsms API helps you to better integrate our messaging services with your CRM and marketing campaigns.
\n To get access to this API, simply generate an API token in the webapp. "
version: 1.0.0
servers:
-
url: 'https://api.fullsms.com'
paths:
/account/balance:
get:
summary: 'Get my Balance'
operationId: getMyBalance
description: 'Get the account current balance.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
balance: 100.0
properties:
balance:
type: number
example: 100.0
403:
description: Authentication
content:
application/json:
schema:
type: object
example:
status_code: 403
message: 'Unauthenticated - Missing/Invalid API key'
properties:
status_code:
type: integer
example: 403
message:
type: string
example: 'Unauthenticated - Missing/Invalid API key'
500:
description: 'Server Error'
content:
application/json:
schema:
type: object
example:
status_code: 500
message: 'Internal Error'
properties:
status_code:
type: integer
example: 500
message:
type: string
example: 'Internal Error'
tags:
- Account
/account/numbers:
get:
summary: 'Get my Numbers'
operationId: getMyNumbers
description: 'Get all available numbers.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
total_numbers: 1
numbers:
-
number: '441111111111'
country: GB
properties:
total_numbers:
type: integer
example: 1
numbers:
type: array
example:
-
number: '441111111111'
country: GB
items:
type: object
properties:
number:
type: string
example: '441111111111'
country:
type: string
example: GB
403:
description: Authentication
content:
application/json:
schema:
type: object
example:
status_code: 403
message: 'Unauthenticated - Missing/Invalid API key'
properties:
status_code:
type: integer
example: 403
message:
type: string
example: 'Unauthenticated - Missing/Invalid API key'
500:
description: 'Server Error'
content:
application/json:
schema:
type: object
example:
status_code: 500
message: 'Internal Error'
properties:
status_code:
type: integer
example: 500
message:
type: string
example: 'Internal Error'
tags:
- Account
/account/lists:
get:
summary: 'Get my Contact Lists'
operationId: getMyContactLists
description: 'Get all contact lists belonging to this account including their details and subscribed contact count.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
total_lists: 1
lists:
-
list_id: 7
name: yourlistName
subscribe_word: null
subscribed_contacts: 1
properties:
total_lists:
type: integer
example: 1
lists:
type: array
example:
-
list_id: 7
name: yourlistName
subscribe_word: null
subscribed_contacts: 1
items:
type: object
properties:
list_id:
type: integer
example: 7
name:
type: string
example: yourlistName
subscribe_word:
type: string
example: null
subscribed_contacts:
type: integer
example: 1
403:
description: Authentication
content:
application/json:
schema:
type: object
example:
status_code: 403
message: 'Unauthenticated - Missing/Invalid API key'
properties:
status_code:
type: integer
example: 403
message:
type: string
example: 'Unauthenticated - Missing/Invalid API key'
500:
description: 'Server Error'
content:
application/json:
schema:
type: object
example:
status_code: 500
message: 'Internal Error'
properties:
status_code:
type: integer
example: 500
message:
type: string
example: 'Internal Error'
tags:
- Account
/account/senderids:
get:
summary: 'Get my Sender IDs'
operationId: getMySenderIDs
description: 'Fetch all approved Custom Sender ID.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
total_senderids: 1
senderids:
- COPERATO
properties:
total_senderids:
type: integer
example: 1
senderids:
type: array
example:
- COPERATO
items:
type: string
403:
description: Authentication
content:
application/json:
schema:
type: object
example:
status_code: 403
message: 'Unauthenticated - Missing/Invalid API key'
properties:
status_code:
type: integer
example: 403
message:
type: string
example: 'Unauthenticated - Missing/Invalid API key'
500:
description: 'Server Error'
content:
application/json:
schema:
type: object
example:
status_code: 500
message: 'Internal Error'
properties:
status_code:
type: integer
example: 500
message:
type: string
example: 'Internal Error'
tags:
- Account
/account/templates:
get:
summary: 'Get my Templates'
operationId: getMyTemplates
description: 'Fetch all templates available for the account.'
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
total_templates: 1
templates:
-
template_id: 7
name: yourTemplateName
content: 'Hello World'
properties:
total_templates:
type: integer
example: 1
templates:
type: array
example:
-
template_id: 7
name: yourTemplateName
content: 'Hello World'
items:
type: object
properties:
template_id:
type: integer
example: 7
name:
type: string
example: yourTemplateName
content:
type: string
example: 'Hello World'
403:
description: Authentication
content:
application/json:
schema:
type: object
example:
status_code: 403
message: 'Unauthenticated - Missing/Invalid API key'
properties:
status_code:
type: integer
example: 403
message:
type: string
example: 'Unauthenticated - Missing/Invalid API key'
500:
description: 'Server Error'
content:
application/json:
schema:
type: object
example:
status_code: 500
message: 'Internal Error'
properties:
status_code:
type: integer
example: 500
message:
type: string
example: 'Internal Error'
tags:
- Account
/messages/send/to_lists:
post:
summary: 'Send SMS to Contact Lists'
operationId: sendSMSToContactLists
description: "This endpoint allows you to Send/Schedule a campaign to a contact lists.\n"
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
status: approved
campaign_id: 3e05699c-03ae-11ee-910d-0264ec2cd11b
properties:
status:
type: string
example: approved
campaign_id:
type: string
example: 3e05699c-03ae-11ee-910d-0264ec2cd11b
403:
description: Authentication
content:
application/json:
schema:
type: object
example:
status_code: 403
message: 'Unauthenticated - Missing/Invalid API key'
properties:
status_code:
type: integer
example: 403
message:
type: string
example: 'Unauthenticated - Missing/Invalid API key'
404:
description: 'Not Found'
content:
application/json:
schema:
type: object
example:
status_code: 404
status: declined
message: 'Template not found or not valid'
properties:
status_code:
type: integer
example: 404
status:
type: string
example: declined
message:
type: string
example: 'Template not found or not valid'
422:
description: 'Low Balance'
content:
application/json:
schema:
type: object
example:
status_code: 422
status: declined
reason: balance_low
message: 'Balance must be over $[current minimum for sending] to create or schedule new campaigns or messages'
properties:
status_code:
type: integer
example: 422
status:
type: string
example: declined
reason:
type: string
example: balance_low
message:
type: string
example: 'Balance must be over $[current minimum for sending] to create or schedule new campaigns or messages'
500:
description: 'Server Error'
content:
application/json:
schema:
type: object
example:
status_code: 500
message: 'Internal Error'
properties:
status_code:
type: integer
example: 500
message:
type: string
example: 'Internal Error'
tags:
- 'Send SMS'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
to_list_ids:
type: array
description: '