---
title: Verify Sapm Account
slug: single-connect-api-3-0-3/verify-sapm-account
description: Learn how to verify a SAPM account using a curl command in this comprehensive document. Explore a code example that demonstrates how to send a POST request to a specific URL, complete with headers for accepting and sending data in JSON format. Discover ho
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "R66Si8UkSedGnZDKQF1Wd",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "Content-Type",
          "type": "string",
          "example": "application/json",
          "description": ""
        },
        {
          "name": "Cookie",
          "type": "string",
          "example": "{{netrightCookie}}",
          "description": ""
        },
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"dbId\":85188\n} ",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Verify Sapm Account",
        "jsonExample": "SUCCESS"
      }
    ],
    "contentType": "application/json",
    "description": "This API will check if the password Single Connect has is valid or not. You should send dbId of SAPM account you wish to be checked.",
    "examples": {
      "languages": [
        {
          "id": "PsxoHdkVhOk5dN6eGX5d6",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount \\\n     --header 'accept: application/json'"
        },
        {
          "id": "QegCZlw2DjBbsEYa5YfON",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "miLyf05XzydZmUZej9bg0",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "2JqUYKiJz37csTbSn-H8f",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "PsxoHdkVhOk5dN6eGX5d6"
    },
    "results": {
      "languages": [
        {
          "id": "T-DbHkzqnt8DbJxyYs8UG",
          "language": "200",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "T-DbHkzqnt8DbJxyYs8UG"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}