Welcome to API Documentation
Requests and Responsesv2.0
Authentication

Autorizacion Requerida

token Your Token required
Endpoint
POST http://api.snic.es/{request}
Response Error Unauthorized
{
  status: 403,
  error: "invalid token"
}
Notifications
Requests and Responses Authentication Required
Send Messages

Authentication Required

Parameters
token Your Token Authentication. required
messages Array of messages you want to send.
phone Phone number
title Title Message
message Text Message (max 255)
required
Endpoint
POST http://api.snic.es/messages/send
Response success
{
  status: 200,
  result:[
    {
      status: "ok",
      msg_sku: "5dcf8ed64baa4ccbbeb869d06021e0ce"
    },
    {
      status: "ok",
      msg_sku: "5dcf8ed64baa4ccbbeb869d06021e0ce"
    }
  ]
}
Response error example
{
  status: 200,
  result:[
    {
      status: "ok",
      msg_sku: "5dcf8ed64baa4ccbbeb869d06021e0ce"
    },
    {
      status: "error",
      error_id: "EMPTY_PARAMS"
      error_msg: "You need post params required"
    }
  ]
}
Response error example
{
  status: 404,
  result:[
    {
      status: "error",
      error_id: "EMPTY_PARAMS"
      error_msg: "You need post params required"
    }
  ]
}
Show Messages

Autorizacion Requerida

token Your Token Authentication. See . required
Request
GET http://api.snic.com/snic/v1.0/messages
Response success
{
  status: 200,
  result:[
    {
      sku: "5dcf8ed64baa4ccbbeb869d06021e0ce",
      status: 0,
      phone: "600000000"
      message: "test",
      send_at: "2017-02-08T18:16:10.000Z"
    },
    {
      sku: "5dcf8ed64baa4ccbbeb869d06021e0ce",
      status: 0,
      phone: "600000000"
      message: "test",
      send_at: "2017-02-08T18:16:10.000Z"
    }
  ]
}
Response Success Empty
{
  status: 200,
  result:[]
}