---
title: Verify Sapm Account
slug: single-connect-api-3-2-0/verify-sapm-account
description: Learn how to verify a SAPM account using the curl command with this detailed code example. This document demonstrates how to make a POST request and includes instructions for adding headers to accept and send JSON data. A valuable resource for developers 
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "WZUZ_3g4vV6rB6rRo6RYP",
  "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": "iETlS-UhSAkwc_5w165b2",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/verifySapmAccount \\\n     --header 'accept: application/json'"
        },
        {
          "id": "aAOBc54mS2sJwr2gvXdG0",
          "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": "XoNgbmoOlnkgY6Scf2nDV",
          "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": "PAOfQUZGR1RwfL4ltRBLB",
          "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": "iETlS-UhSAkwc_5w165b2"
    },
    "results": {
      "languages": [
        {
          "id": "fRgwBEcbOtV3NFJmogH_g",
          "language": "200",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "fRgwBEcbOtV3NFJmogH_g"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}