Authorizations
Use your API token
curl --request GET \
--url https://psn-api.paystub.dev/admin/auth/me \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"user": {
"id": 1,
"site_id": 1,
"role_id": 2,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"klaviyo_id": "<string>",
"slack_id": "<string>",
"email_verified_at": "2023-11-07T05:31:56Z",
"total_spent": 1250.5,
"metadata": {},
"settings": {},
"status": "Active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"site": {
"id": 123,
"identifier": "<string>",
"name": "<string>",
"logo": "<string>",
"payment_processors": [
"Stripe"
],
"document_types": [
"Paystub"
],
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"role": {
"id": 123,
"name": "Owner",
"description": "<string>",
"permissions": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"is_verified": true,
"permissions": [
"<string>"
]
}
}
}
}Get current authenticated administrator details
curl --request GET \
--url https://psn-api.paystub.dev/admin/auth/me \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"user": {
"id": 1,
"site_id": 1,
"role_id": 2,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"klaviyo_id": "<string>",
"slack_id": "<string>",
"email_verified_at": "2023-11-07T05:31:56Z",
"total_spent": 1250.5,
"metadata": {},
"settings": {},
"status": "Active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"site": {
"id": 123,
"identifier": "<string>",
"name": "<string>",
"logo": "<string>",
"payment_processors": [
"Stripe"
],
"document_types": [
"Paystub"
],
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"role": {
"id": 123,
"name": "Owner",
"description": "<string>",
"permissions": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"is_verified": true,
"permissions": [
"<string>"
]
}
}
}
}Use your API token