Récupérer votre compte

Cette méthode vous permet de récupérer votre compte

GET

/account

Exemples


GET /account HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/json
          
        

Format de la réponse


{
    "status": 1,
    "message": "OK",
    "account": {
      "client_id": "1010101",
      "parent_client_id": "0",      //if subaccount
      "email": "mr@robot.com",
      "firstname": "Elliot",
      "lastname": "Alderson",
      "city": "New York",
      "type": "company",
      "company": "MyCompany",
      "phone": "41781234567",
      "address1": "123 real street",
      "address2": null,
      "zip": "10040",
      "country": "",
      "country_code": "FR",
      "lang": "FR",
      "credits": "10000",
      "unlimited": "1",
      "description": "My company description",
      "senderid": "",
      "status": "1",
      "time_zone": "Europe/Paris",
      "has_verified_email": true,
      "whitelabel_id": "1",
      "last_accept_gcs": "2024-11-21 09:48:09"
    }
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>1</status>
  <message>OK</message>
  <account>
    <client_id>1010101</client_id>
    <email>mr@robot.com</email>
    <firstname>Elliot</firstname>
    <lastname>Alderson</lastname>
    <city>New York</city>
    <type>private</type>
    <company>Allsafe</company>
    <phone>41781234567</phone>
    <address1>unknown address</address1>
    <address2>null</address2>
    <zip>10040</zip>
    <country></country>
    <country_code>US</country_code>
    <lang>EN</lang>
    <credits>0</credits>
    <unlimited>1</unlimited>
    <description>Fsociety</description>
    <senderid></senderid>
    <status>1</status>
  </account>
</response>