{"openapi":"3.1.0","info":{"title":"SisBird customer API","version":"1.0.0","description":"Read your numbers, call records, SMS and wallet; change number labels and destinations. Authenticate with an API key from the portal (Settings → API keys): `Authorization: Bearer didk_…`. Each key has scopes; requests are limited per key (default 120 per minute, 429 with Retry-After). Money is a decimal string in USD; times are ISO-8601 UTC; numbers are E.164."},"servers":[{"url":"/v1","description":"https://api.<your domain>/v1"}],"tags":[{"name":"numbers"},{"name":"cdrs"},{"name":"sms"},{"name":"wallet"}],"paths":{"/api/numbers":{"get":{"operationId":"getApiNumbers","summary":"List your numbers","security":[{"apiKey":[]}],"x-scope":"numbers:read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Number id (use it in /numbers/{id})"},"e164":{"type":"string","description":"The number in E.164, e.g. +447700900123"},"countryIso2":{"type":"string"},"type":{"type":"string"},"typeLabel":{"type":["string","null"]},"city":{"type":["string","null"]},"capabilities":{"type":"array","items":{"type":"string"}},"status":{"type":"string","description":"active, grace, suspended, maintenance …"},"state":{"type":"string"},"currentPeriodEnd":{"anyOf":[{"type":"string","description":"ISO-8601 UTC timestamp"},{"type":"null"}]},"label":{"type":["string","null"]},"destinationsSummary":{"type":"array","items":{"type":"string"}}},"required":["id","e164","countryIso2","type","typeLabel","city","capabilities","status","state","currentPeriodEnd","label","destinationsSummary"],"additionalProperties":{}}}},"required":["data"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/numbers/{id}":{"get":{"operationId":"getApiNumbersId","summary":"One number with its destinations","security":[{"apiKey":[]}],"x-scope":"numbers:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Number id (use it in /numbers/{id})"},"e164":{"type":"string","description":"The number in E.164, e.g. +447700900123"},"countryIso2":{"type":"string"},"type":{"type":"string"},"typeLabel":{"type":["string","null"]},"city":{"type":["string","null"]},"capabilities":{"type":"array","items":{"type":"string"}},"status":{"type":"string","description":"active, grace, suspended, maintenance …"},"state":{"type":"string"},"currentPeriodEnd":{"anyOf":[{"type":"string","description":"ISO-8601 UTC timestamp"},{"type":"null"}]},"label":{"type":["string","null"]},"destinationsSummary":{"type":"array","items":{"type":"string"}},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"target":{},"ringTimeoutS":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"enabled":{"type":"boolean"}},"required":["id","role","priority","type","target","ringTimeoutS","enabled"],"additionalProperties":{}}}},"required":["id","e164","countryIso2","type","typeLabel","city","capabilities","status","state","currentPeriodEnd","label","destinationsSummary","destinations"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"patch":{"operationId":"patchApiNumbersId","summary":"Change a number's label","security":[{"apiKey":[]}],"x-scope":"numbers:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Number id (use it in /numbers/{id})"},"e164":{"type":"string","description":"The number in E.164, e.g. +447700900123"},"countryIso2":{"type":"string"},"type":{"type":"string"},"typeLabel":{"type":["string","null"]},"city":{"type":["string","null"]},"capabilities":{"type":"array","items":{"type":"string"}},"status":{"type":"string","description":"active, grace, suspended, maintenance …"},"state":{"type":"string"},"currentPeriodEnd":{"anyOf":[{"type":"string","description":"ISO-8601 UTC timestamp"},{"type":"null"}]},"label":{"type":["string","null"]},"destinationsSummary":{"type":"array","items":{"type":"string"}}},"required":["id","e164","countryIso2","type","typeLabel","city","capabilities","status","state","currentPeriodEnd","label","destinationsSummary"],"additionalProperties":{}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]}},"required":["label"],"additionalProperties":false}}}}}},"/api/numbers/{id}/destinations":{"get":{"operationId":"getApiNumbersIdDestinations","summary":"Where calls to the number go (priority + failover)","security":[{"apiKey":[]}],"x-scope":"numbers:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}},"put":{"operationId":"putApiNumbersIdDestinations","summary":"Replace the number's destinations (same rules as the portal)","security":[{"apiKey":[]}],"x-scope":"numbers:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destinations":{"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"sip_account"},"target":{"anyOf":[{"type":"object","properties":{"sipAccountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sipAccountId"],"additionalProperties":false},{"type":"object","properties":{"appAccounts":{"type":"string","const":"all"}},"required":["appAccounts"],"additionalProperties":false}]}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"sip_uri"},"target":{"type":"object","properties":{"uri":{"type":"string","maxLength":255,"pattern":"^(sips?:)?[A-Za-z0-9._~+-]+@[A-Za-z0-9.-]+(:\\d{1,5})?$"}},"required":["uri"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"sip_trunk"},"target":{"type":"object","properties":{"trunkId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["trunkId"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"ring_group"},"target":{"type":"object","properties":{"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["ringGroupId"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"ivr"},"target":{"type":"object","properties":{"ivrMenuId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["ivrMenuId"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"extension"},"target":{"type":"object","properties":{"sipAccountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sipAccountId"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"time_condition"},"target":{"type":"object","properties":{"timeConditionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["timeConditionId"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"voicemail"},"target":{"type":"object","properties":{"sipAccountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"forward_pstn"},"target":{"type":"object","properties":{"number":{"type":"string","pattern":"^\\+[1-9][0-9]{4,14}$"}},"required":["number"],"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false},{"type":"object","properties":{"role":{"default":"primary","type":"string","enum":["primary","direct","failover"]},"priority":{"type":"integer","minimum":1,"maximum":20},"ringTimeoutS":{"type":"integer","minimum":5,"maximum":300},"enabled":{"default":true,"type":"boolean"},"type":{"type":"string","const":"hangup"},"target":{"type":"object","properties":{},"additionalProperties":false}},"required":["priority","type","target"],"additionalProperties":false}]}}},"required":["destinations"],"additionalProperties":false}}}}}},"/api/cdrs":{"get":{"operationId":"getApiCdrs","summary":"Call records (newest first, cursor pagination)","security":[{"apiKey":[]}],"x-scope":"cdr:read","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"didId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["inbound","outbound"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["answered","missed","failed"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startAt":{"type":"string","description":"ISO-8601 UTC timestamp"},"direction":{"type":"string","enum":["inbound","outbound","internal"]},"caller":{"type":["string","null"]},"callee":{"type":["string","null"]},"didE164":{"type":["string","null"]},"durationS":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"billsec":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hangupCause":{"type":["string","null"]}},"required":["id","startAt","direction","caller","callee","didE164","durationS","billsec","hangupCause"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/sms":{"get":{"operationId":"getApiSms","summary":"SMS received on your numbers (newest first, cursor pagination)","security":[{"apiKey":[]}],"x-scope":"sms:read","parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"didId","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unread","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":32}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receivedAt":{"type":"string","description":"ISO-8601 UTC timestamp"},"sender":{"type":"string"},"didId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"didE164":{"type":"string"},"didLabel":{"type":["string","null"]},"body":{"type":["string","null"]},"read":{"type":"boolean"}},"required":["id","receivedAt","sender","didId","didE164","didLabel","body","read"],"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/api/wallet":{"get":{"operationId":"getApiWallet","summary":"Wallet balances","security":[{"apiKey":[]}],"x-scope":"wallet:read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"USD amount as a decimal string, e.g. \"12.50\""},"bonus":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"USD amount as a decimal string, e.g. \"12.50\""},"onHold":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"USD amount as a decimal string, e.g. \"12.50\""},"pendingDeposit":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"USD amount as a decimal string, e.g. \"12.50\""},"currency":{"type":"string","const":"USD"}},"required":["available","bonus","onHold","pendingDeposit","currency"],"additionalProperties":false}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}}},"webhooks":{"call.started":{"post":{"summary":"call.started event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"call.started"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}},"call.ended":{"post":{"summary":"call.ended event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"call.ended"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}},"number.activated":{"post":{"summary":"number.activated event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"number.activated"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}},"number.suspended":{"post":{"summary":"number.suspended event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"number.suspended"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}},"wallet.low_balance":{"post":{"summary":"wallet.low_balance event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"wallet.low_balance"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}},"deposit.approved":{"post":{"summary":"deposit.approved event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"deposit.approved"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}},"sms.received":{"post":{"summary":"sms.received event","description":"Signed with `X-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint secret>`. Reject when |now − t| > 300 s. Retried with exponential backoff for up to 24 h until you answer 2xx.","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","event","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid"},"event":{"const":"sms.received"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}},"responses":{"200":{"description":"Received"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"didk_<prefix>_<secret>","description":"Scopes: numbers:read, numbers:write, cdr:read, sms:read, wallet:read"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"requestId":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"Unauthenticated":{"description":"Missing, unknown or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The key lacks the scope, API access is off, or the account is suspended (writes)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Not found or not yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}