> This page is for MVS Auth.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mvscloud.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mvscloud.com/_mcp/server.

# Verify Authentication

POST https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication
Content-Type: application/json

Verify authentication of a passkey

Reference: https://docs.mvscloud.com/mvs-auth/central-auth-api/passkey/verify-authentication

## Authentication

- `Authorization` header (bearer token, required) — Bearer token authentication

## Request

### Body (application/json)

This endpoint expects an object.

- `response` (map from string to any, required)

## Response

### 200

Success

- `session` (Session, optional)
- `user` (User, optional)

## Errors

### 400 Bad Request Error

Bad Request. Usually due to missing parameters, or invalid parameters.

- `message` (string, required)

### 401 Unauthorized Error

Unauthorized. Due to missing or invalid authentication.

- `message` (string, required)

### 403 Forbidden Error

Forbidden. You do not have permission to access this resource or to perform this action.

- `message` (string, optional)

### 404 Not Found Error

Not Found. The requested resource was not found.

- `message` (string, optional)

### 429 Too Many Requests Error

Too Many Requests. You have exceeded the rate limit. Try again later.

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error. This is a problem with the server that you cannot fix.

- `message` (string, optional)

## Types

### Session

- `expiresAt` (datetime, required)
- `token` (string, required)
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)
- `userId` (string, required)
- `id` (string, optional)
- `ipAddress` (string, optional)
- `userAgent` (string, optional)
- `impersonatedBy` (string, optional)
- `activeOrganizationId` (string, optional)

### User

- `name` (string, required)
- `email` (string, required)
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)
- `id` (string, optional)
- `emailVerified` (boolean, optional, default: false)
- `image` (string, optional)
- `username` (string, optional)
- `displayUsername` (string, optional)
- `role` (string, optional)
- `banned` (boolean, optional, default: false)
- `banReason` (string, optional)
- `banExpires` (datetime, optional)
- `twoFactorEnabled` (boolean, optional)
- `onboardingComplete` (boolean, optional)
- `locale` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "session": {
    "expiresAt": "2024-01-15T09:30:00Z",
    "token": "string",
    "createdAt": "Generated at runtime",
    "updatedAt": "2024-01-15T09:30:00Z",
    "userId": "string",
    "id": "string",
    "ipAddress": "string",
    "userAgent": "string",
    "impersonatedBy": "string",
    "activeOrganizationId": "string"
  },
  "user": {
    "name": "string",
    "email": "string",
    "createdAt": "Generated at runtime",
    "updatedAt": "Generated at runtime",
    "id": "string",
    "emailVerified": false,
    "image": "string",
    "username": "string",
    "displayUsername": "string",
    "role": "string",
    "banned": false,
    "banReason": "string",
    "banExpires": "2024-01-15T09:30:00Z",
    "twoFactorEnabled": true,
    "onboardingComplete": true,
    "locale": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication"

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

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://c-auth.mvscloud.com/api/auth/passkey/verify-authentication")! 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 as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```