# Get available sign-in methods

Returns which sign-in methods the server has configured: the social providers with credentials, whether email one-time codes can be sent, and password sign-in. Carries the public client keys a browser needs, with `captcha` and `googleOneTapClientId` null when those are unconfigured.

## GET `/v1/auth/methods`

### Responses

#### 200 Response for status 200

`$schema` string<uri>

Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.

`data` object required

- **providers** object required
  - `wpcom` boolean required
  - `google` boolean required
  - `github` boolean required
  - `emailOtp` boolean required
  - `password` boolean required
  - `captcha` object | any required
    - **Any of:**
      - `provider` string required
      - `siteKey` string required
      - `googleOneTapClientId` string | any required

#### default Error

Every 4xx and 5xx response is one RFC 9457 problem document served as `application/problem+json`.

`$schema` string<uri>

Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.

- **type** string required
- **title** string required
- **status** integer required
- **detail** string required
- **code** string required
- **pointer** string
- **details** object
- **suggestions** string[]
- **next** string[]
- **requestId** string required

### Try it

#### Server

Base URL https://api.spacefast.com

### Send

#### Request

#### cURL

```bash
curl -X GET "https://api.spacefast.com/v1/auth/methods"
```
#### JavaScript

```javascript
const response = await fetch("https://api.spacefast.com/v1/auth/methods", {
  method: "GET"
});
```
#### Python

```python
import requests

response = requests.get(
    "https://api.spacefast.com/v1/auth/methods",
)
```

### Response

#### 200 default

```json
{
  "$schema": "http://example.com",
  "data": {
    "providers": {
      "wpcom": true,
      "google": true,
      "github": true
    },
    "emailOtp": true,
    "password": true,
    "captcha": {
      "provider": "turnstile",
      "siteKey": "string"
    },
    "googleOneTapClientId": "string"
  }
}
```

```json
{
  "$schema": "http://example.com",
  "type": "string",
  "title": "string",
  "status": -9007199254740991,
  "detail": "string",
  "code": "string",
  "pointer": "string",
  "details": {
    "property1": null,
    "property2": null
  },
  "suggestions": [
    "string"
  ],
  "next": [
    "string"
  ],
  "requestId": "string"
}
```
