> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Create the Mobile Driver’s License Verification API

> Create an instance of Auth0's Mobile Driver’s License Verification API for the mDL Verification Service.

export const AuthCodeGroup = ({children, dropdown}) => {
  const [processedChildren, setProcessedChildren] = useState(children);
  useEffect(() => {
    let unsubscribe = null;
    function init() {
      unsubscribe = window.autorun(() => {
        const processChildren = node => {
          if (typeof node === "string") {
            let processedNode = node;
            for (const [key, value] of window.rootStore.variableStore.values.entries()) {
              processedNode = processedNode.replace(new RegExp(key, "g"), value);
            }
            return processedNode;
          } else if (Array.isArray(node)) {
            return node.map(processChildren);
          } else if (node && node.props && node.props.children) {
            return {
              ...node,
              props: {
                ...node.props,
                children: processChildren(node.props.children)
              }
            };
          }
          return node;
        };
        setProcessedChildren(processChildren(children));
      });
    }
    if (window.rootStore) {
      init();
    } else {
      window.addEventListener("adu:storeReady", init);
    }
    return () => {
      window.removeEventListener("adu:storeReady", init);
      unsubscribe?.();
    };
  }, [children]);
  return <CodeGroup dropdown={dropdown}>{processedChildren}</CodeGroup>;
};

export const AuthCodeBlock = ({filename, icon, language, highlight, children}) => {
  const [processedChildren, setProcessedChildren] = useState(children);
  useEffect(() => {
    let unsubscribe = null;
    function init() {
      unsubscribe = window.autorun(() => {
        let processedChildren = children;
        for (const [key, value] of window.rootStore.variableStore.values.entries()) {
          processedChildren = processedChildren.replace(new RegExp(key, "g"), value);
        }
        setProcessedChildren(processedChildren);
      });
    }
    if (window.rootStore) {
      init();
    } else {
      window.addEventListener("adu:storeReady", init);
    }
    return () => {
      window.removeEventListener("adu:storeReady", init);
      unsubscribe?.();
    };
  }, [children]);
  return <CodeBlock filename={filename} icon={icon} language={language} lines highlight={highlight}>
      {processedChildren}
    </CodeBlock>;
};

<Warning>
  Auth0’s Mobile Driver's License Verification Service is in Early Access. By using this feature, you agree to the applicable Free Trial terms in Okta’s [Master Subscription Agreement](https://www.okta.com/legal). To learn more about Auth0’s release stages, read Product Release Stages.
</Warning>

The Mobile Driver's License Verification API is a system API for customers to initiate a verification request for a user’s Mobile Driver’s License (mDL).

<div id="create-the-mdl-verification-api">
  ## Create the mDL Verification API
</div>

Once you've been approved to join the EA, you can create the mDL Verification API.

<Tabs>
  <Tab title="Auth0 Dashboard">
    1. Navigate to [**Auth0 Dashboard > Applications > APIs** ](https://manage.auth0.com/#/apis).
    2. Select **Create API** .
    3. Enter the following information:

       1. **Name** : Verification API
       2. **Identifier** : `https://{account.namespace}/vdcs/`
       3. **JSON Web Token (JWT) Profile** : Auth0
       4. **JSON Web Token (JWT) Signing Algorithm** : RS256
       5. Select **Create** .

    <div id="enable-mdl-verification">
      #### Enable mDL verification
    </div>

    1. To enable mDL for your application:

    2. Navigate to [**Applications > Applications** ](https://manage.auth0.com/#/applications).

    3. Choose the application you want to use with Verification API.

    4. Select the **APIs** tab.

    5. Enable Verification API.

           <Frame>
             <img
               src="https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=e82e446ffeabcc789b6e651c6cfe59ef"
               alt="Auth0 Dashboard > Applications > APIs
       Auth0 Dashboard > Applications > Applications"
               data-og-width="904"
               width="904"
               data-og-height="891"
               height="891"
               data-path="docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png"
               data-optimize="true"
               data-opv="3"
               srcset="https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?w=280&fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=32cfc34e9e4e00b91cf50ce31e74e4e9 280w, https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?w=560&fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=1df187cdf4fa10691bc05cec98b006ef 560w, https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?w=840&fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=94476824addc0e7cf9de6f01d29320c5 840w, https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?w=1100&fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=74687007a4b07a739d5c3036103252a4 1100w, https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?w=1650&fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=dd75cb49252204b6db8af98fb047fa0b 1650w, https://mintcdn.com/generaltranslationinc/xDgF_gm8-0tTk54s/docs/images/ja-jp/cdy7uua7fh8z/4mzN6voEXDUXkJjGXXe50Y/e84c8be48ce78289f950c62eaa4601cc/2025-03-11_14-42-35.png?w=2500&fit=max&auto=format&n=xDgF_gm8-0tTk54s&q=85&s=d622141f6c94b348855d7ca1cf0b473d 2500w"
             />
           </Frame>

    6. In the drop-down menu, choose the associated permissions:

       1. `create:verification_request`
       2. `read:verification_request`

    7. Select **Update** .
  </Tab>

  <Tab title="Management API">
    1. Make a `POST` call to the [Create a Resource Server](https://auth0.com/docs/api/management/v2/resource-servers/post-resource-servers) endpoint.

    <AuthCodeGroup>
      ```bash cURL theme={null}
         curl --request POST \
         --url 'https://{yourDomain}/api/v2/resource-servers/post-resource-servers' \
         --header 'content-type: application/json' \
         --data '{"name"}'

      ```

      ```csharp C# theme={null}
         var client = new RestClient("https://{yourDomain}/api/v2/resource-servers/post-resource-servers");
      var request = new RestRequest(Method.POST);
      request.AddHeader("content-type", "application/json");
      request.AddParameter("application/json", "{"name"}", ParameterType.RequestBody);
      IRestResponse response = client.Execute(request);

      ```

      ```go Go theme={null}
         package main

      import (
         "fmt"
         "strings"
         "net/http"
         "io/ioutil"
      )

      func main() {

         url := "https://{yourDomain}/api/v2/resource-servers/post-resource-servers"

         payload := strings.NewReader("{"name"}")

         req, _ := http.NewRequest("POST", url, payload)

         req.Header.Add("content-type", "application/json")

         res, _ := http.DefaultClient.Do(req)

         defer res.Body.Close()
         body, _ := ioutil.ReadAll(res.Body)

         fmt.Println(res)
         fmt.Println(string(body))

      }

      ```

      ```java Java theme={null}
         HttpResponse response = Unirest.post("https://{yourDomain}/api/v2/resource-servers/post-resource-servers")
         .header("content-type", "application/json")
         .body("{"name"}")
         .asString();

      ```

      ```javascript Node.JS theme={null}
         var axios = require("axios").default;

      var options = {
         method: 'POST',
         url: 'https://{yourDomain}/api/v2/resource-servers/post-resource-servers',
         headers: {'content-type': 'application/json'},
         data: '{"name"}'
      };

      axios.request(options).then(function (response) {
         console.log(response.data);
      }).catch(function (error) {
         console.error(error);
      });

      ```

      ```objc Obj-C theme={null}
         #import <Foundation/Foundation.h>

      NSDictionary *headers = @{ @"content-type": @"application/json" };

      NSData *postData = [[NSData alloc] initWithData:[@"{"name"}" dataUsingEncoding:NSUTF8StringEncoding]];

      NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://{yourDomain}/api/v2/resource-servers/post-resource-servers"]
                                                            cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                         timeoutInterval:10.0];
      [request setHTTPMethod:@"POST"];
      [request setAllHTTPHeaderFields:headers];
      [request setHTTPBody:postData];

      NSURLSession *session = [NSURLSession sharedSession];
      NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                                completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                      if (error) {
                                                         NSLog(@"%@", error);
                                                      } else {
                                                         NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                         NSLog(@"%@", httpResponse);
                                                      }
                                                }];
      [dataTask resume];

      ```

      ```php PHP theme={null}
         $curl = curl_init();

      curl_setopt_array($curl, [
         CURLOPT_URL => "https://{yourDomain}/api/v2/resource-servers/post-resource-servers",
         CURLOPT_RETURNTRANSFER => true,
         CURLOPT_ENCODING => "",
         CURLOPT_MAXREDIRS => 10,
         CURLOPT_TIMEOUT => 30,
         CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
         CURLOPT_CUSTOMREQUEST => "POST",
         CURLOPT_POSTFIELDS => "{"name"}",
         CURLOPT_HTTPHEADER => [
            "content-type: application/json"
         ],
      ]);

      $response = curl_exec($curl);
      $err = curl_error($curl);

      curl_close($curl);

      if ($err) {
         echo "cURL Error #:" . $err;
      } else {
         echo $response;
      }

      ```

      ```python Python theme={null}
         import http.client

      conn = http.client.HTTPSConnection("")

      payload = "{"name"}"

      headers = { 'content-type': "application/json" }

      conn.request("POST", "/{yourDomain}/api/v2/resource-servers/post-resource-servers", payload, headers)

      res = conn.getresponse()
      data = res.read()

      print(data.decode("utf-8"))

      ```

      ```ruby Ruby theme={null}
         import http.client

      conn = http.client.HTTPSConnection("")

      payload = "{"name"}"

      headers = { 'content-type': "application/json" }

      conn.request("POST", "/{yourDomain}/api/v2/resource-servers/post-resource-servers", payload, headers)

      res = conn.getresponse()
      data = res.read()

      print(data.decode("utf-8"))

      ```

      ```swift Swift theme={null}
         import Foundation

      let headers = ["content-type": "application/json"]

      let postData = NSData(data: "{"name"}".data(using: String.Encoding.utf8)!)

      let request = NSMutableURLRequest(url: NSURL(string: "https://{yourDomain}/api/v2/resource-servers/post-resource-servers")! as URL,
                                             cachePolicy: .useProtocolCachePolicy,
                                          timeoutInterval: 10.0)
      request.httpMethod = "POST"
      request.allHTTPHeaderFields = headers
      request.httpBody = postData as Data

      let session = URLSession.shared
      let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
         if (error != nil) {
            print(error)
         } else {
            let httpResponse = response as? HTTPURLResponse
            print(httpResponse)
         }
      })

      ```
    </AuthCodeGroup>

    2. Enable the permissions by following instructions for [Management API](https://auth0.com/docs/get-started/apis/add-api-permissions#use-the-management-api).
  </Tab>
</Tabs>
