Get Me
GET
https://api.slidespeak.co/api/v1/me
Retrieves the username associated with the provided API key. Use this endpoint to confirm which user account is linked to the API key being used. Useful for debugging, account management, and ensuring correct API key usage.
Headers
Section titled “Headers” Content-Type: string
application/json
X-API-Key: string
The API key to use for the request.
<YOUR_API_KEY>
Code Examples
Section titled “Code Examples”curl -X GET "https://api.slidespeak.co/api/v1/me" -H "Content-Type: application/json" -H "x-api-key: YOUR_API_KEY"
fetch('https://api.slidespeak.co/api/v1/me', { method: 'GET', headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_API_KEY' }}) .then(response => response.json()) .then(data => { console.log('Me:', data); }) .catch(error => { console.error('Error:', error); });
import requests
url = "https://api.slidespeak.co/api/v1/me"headers = { "Content-Type": "application/json", "x-api-key": "YOUR_API_KEY" }
response = requests.get(url, headers=headers)print(response.json())
<?phprequire 'vendor/autoload.php';
use GuzzleHttpClient;
$client = new Client();
$response = $client->get('https://api.slidespeak.co/api/v1/me', [ 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => 'YOUR_API_KEY' ]]);
$body = $response->getBody();$data = json_decode($body, true);
print_r($data);
Response
Section titled “Response”{ "user_name": "john_doe"}