Organizations
Get Organization Profile
Retrieve the current organization’s profile
GET
/
organization
cURL
curl --request GET \
--url https://api.beachdepository.com/v1/organization \
--header 'Authorization: Bearer <token>'
const response = await fetch("https://api.beachdepository.com/v1/organization", {
method: "GET",
headers: {
Authorization: "Bearer <token>",
},
})
const data = await response.json()
import requests
response = requests.get(
"https://api.beachdepository.com/v1/organization",
headers={
"Authorization": "Bearer <token>",
},
)
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.beachdepository.com/v1/organization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
{
"data": {
"id": "k57orgxyz",
"name": "Acme Precious Metals",
"maxInsuredValueCents": "100000000",
"createdAt": "2025-01-15T10:30:00Z"
}
}
Returns the organization profile associated with the API key.
Authorizations
string
required
Send
Bearer <token> in this header. The key needs organizations:read.cURL
curl --request GET \
--url https://api.beachdepository.com/v1/organization \
--header 'Authorization: Bearer <token>'
const response = await fetch("https://api.beachdepository.com/v1/organization", {
method: "GET",
headers: {
Authorization: "Bearer <token>",
},
})
const data = await response.json()
import requests
response = requests.get(
"https://api.beachdepository.com/v1/organization",
headers={
"Authorization": "Bearer <token>",
},
)
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.beachdepository.com/v1/organization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
{
"data": {
"id": "k57orgxyz",
"name": "Acme Precious Metals",
"maxInsuredValueCents": "100000000",
"createdAt": "2025-01-15T10:30:00Z"
}
}
⌘I
cURL
curl --request GET \
--url https://api.beachdepository.com/v1/organization \
--header 'Authorization: Bearer <token>'
const response = await fetch("https://api.beachdepository.com/v1/organization", {
method: "GET",
headers: {
Authorization: "Bearer <token>",
},
})
const data = await response.json()
import requests
response = requests.get(
"https://api.beachdepository.com/v1/organization",
headers={
"Authorization": "Bearer <token>",
},
)
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.beachdepository.com/v1/organization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
{
"data": {
"id": "k57orgxyz",
"name": "Acme Precious Metals",
"maxInsuredValueCents": "100000000",
"createdAt": "2025-01-15T10:30:00Z"
}
}